note 65591 deleted from function.mysql-create-db by bjori

From: Date: Thu, 04 May 2006 07:22:42 +0000
Subject: note 65591 deleted from function.mysql-create-db by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-110503@lists.php.net to get a copy of this message
Note Submitter: samfreak at gmail dot com ---- <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?

« previous php.notes (#110503) next »