I'm having a little trouble getting mysql and php4 to play together. I am running Redhat 7 and have installed via RPM mysql 3.23, PHP 4.04pl1-3, and webmin. I also have Apache running of course. I am able to write test pages in php, you know, the old "Hello World" and the like, and they work fine. I am also able to access mysql via the command prompt and webmin, and create databases, tables and what have you. However if I try and connect to a database with php, that's where the problem is. I get the following error:
Fatal error: Call to undefined function: mysql_connect() in /var/www/html/phpMyAdmin/lib.inc.php on line 170
I figured that maybe mysql support was not compiled into php so I downloaded the following file:
php-mysql-4.0.4pl1-3.rpm
When I try to install that, I get the following error:
error: failed dependencies:
libmysqlclient.so.10 is needed by php-mysql-4.0.4pl1-3
Well that's the long and short of it, I would appreciate any help and/or suggestions.
Thanks