Re: MySQL and PHP5

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

 



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?

""Tim"" <tim@xxxxxxxxxxxx> wrote in message 
news:57.D3.23120.27581C84@xxxxxxxxxxxxxxx
> That was it! Thank you so much!
>
> I'm working through a tutorial/book, and the text didn't even mention 
> this!
>
> Wow, good tip for newbies!
>
> Thanks again!
>
> Tim R.
> "Elizabeth M Smith" <auroraeosrose@xxxxxxxxx> wrote in message 
> news:DF.42.27431.9E961C84@xxxxxxxxxxxxxxx
>>
>>> However, the results of my phpinfo() do not show a MySQL section (I 
>>> don't
>>> know if there should be one, I'm new to this).
>>
>> Mysql should show up - one piece of information that I DON'T see that is
>> probably the most important - is your php.ini being loaded?  You should
>> see a section in the top of your phpinfo() page telling you where it's
>> looking for php.ini, and which one is being loaded.
>>
>> If you're using apache the easiest way to MAKE SURE you're getting the
>> right php.ini discovered and used is to place the following in your
>> httpd.conf file
>>
>> PHPIniDir "C:\php\"
>>
>> and restart your server - if you've altered your PATH recently might be
>> smart to reboot your machine - windows can be a bit flakey.
>>
>>> Is there something I am missing? I had heard that you need to compile 
>>> php
>>> yourself if you want MySQL.
>>
>> Only on *nix machines - PHP provides binaries for windows so you don't
>> have to compile anything.
>>
>> Thanks,
>> Elizabeth
>
> 



-- 
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