Re: MySQL and PHP5

From: Date: Sat, 06 Sep 2008 13:35:04 +0000
Subject: Re: MySQL and PHP5
References: 1 2 3 4  Groups: php.windows 
Request: Send a blank email to php-windows+get-29021@lists.php.net to get a copy of this message
Tim wrote: > I spoke to soon. Your tip did manage to get the MySQL section to show up in > the output of phpinfo(), and the connect command doesn't throw an error > anymore, but now I get the same Undefined Function error on the line to > create a db: > > mysql_create_db("dbName") or die(mysql_error()); > > Why would it be letting my connect command pass without an error, but this > line generate the error? > Because mysql_create_db doesn't exist for mysql client libs above 4.0 - read the documentation at php.net please If you want to create a db, do a CREATE DATABASE query Thanks, Elizabeth Smith

« previous php.windows (#29021) next »