problems with php and MySQL
| From: | list_php_config at controlaircorp dot com | Date: | Tue, 19 Apr 2005 22:13:37 +0000 |
| Subject: | problems with php and MySQL | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-16001@lists.php.net to get a copy of this message | ||
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