Re: MySQL and PHP5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux