note 65591 added to function.mysql-create-db
| From: | samfreak at gmail dot com | Date: | Thu, 04 May 2006 05:55:45 +0000 |
| Subject: | note 65591 added to function.mysql-create-db | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-110497@lists.php.net to get a copy of this message | ||
<html>
<head>
<title>Autos</title>
</head>
<body>
<?PHP
$link = mysql_connect("localhost", "root", "passx") or die
("Error en la conexion");
$lista_bd=mysql_list_dbs($link);
while($i= mysql_fetch_object($lista_bd))
{
if($i-> Database == 'autos')
{
echo 'Ya existe la base de datos.';
exit; }
}
$soru = 'CREATE DATABASE .$auto';
mysql_query($soru);
mysql_select_db("Autos",$link);
//$crear_db =mysql_create_db("Autos") or die ("Error al crear la base de
datos");
?>
</body>
</html>
this is a teste php in wamp, what's wrong?
----
Server IP: 203.202.10.60
Probable Submitter: 200.95.150.115
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.mysql-create-db.php
Edit -- http://master.php.net/note/edit/65591
Del: integrated -- http://master.php.net/note/delete/65591/integrated
Del: useless -- http://master.php.net/note/delete/65591/useless
Del: bad code -- http://master.php.net/note/delete/65591/bad+code
Del: spam -- http://master.php.net/note/delete/65591/spam
Del: non-english -- http://master.php.net/note/delete/65591/non-english
Del: in docs -- http://master.php.net/note/delete/65591/in+docs
Del: other reasons-- http://master.php.net/note/delete/65591
Reject -- http://master.php.net/note/reject/65591
Search -- http://master.php.net/manage/user-notes.php