Re: MySQL and PHP5

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

 



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@xxxxxxxxx> wrote in message 
news:2E.F5.12247.EE682C84@xxxxxxxxxxxxxxx
> 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