Re: MySQL and PHP5

From: Date: Sun, 07 Sep 2008 02:54:35 +0000
Subject: Re: MySQL and PHP5
References: 1 2 3 4 5  Groups: php.windows 
Request: Send a blank email to php-windows+get-29022@lists.php.net to get a copy of this message
Thanks, again, Elizabeth! Makes sense. I hadn't started the documentation yet because I was trying to get a working understanding of things first by going through a tutorial. I realize now that my tutorial was for an earlier version of PHP and MySQL, so things like this are going to be a problem. Anyway, thanks for setting me straight. Tim R. "Elizabeth M Smith" <auroraeosrose@gmail.com> wrote in message news:2E.F5.12247.EE682C84@pb1.pair.com... > 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 (#29022) next »