Does your phpinfo() show the mysql information? You might not have the mysql
modules loaded for PHP.
John
Hi All,
I really need some help interfacing PHP5 with a MySQL database. I'm running
MySQL 4.0.21, Apache 2.0.52 and PHP 5.0.2 on a desktop PC running Windows ME.
I've followed all the appropriate installation instructions and can get the
server up and running and executing php files fine. Also, the I can use mysql
to manipulate the SQL database. My problem is that none of the php mysql
functions appear to be accessible from my php scripts. For example:
<?php
if (function_exists("mysql_connect"))
echo "yes";
else
echo "no";
?>
fails every time. It's like the sql access functions don't exist. I've copied
libmysql.dll and php5ts.dll into the windows/system directory, made various
changes to php.ini etc... but nothing.
What am I doing wrong?.
Ta,
Dave