PHP and MySql problem!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dynasty
Forum Newbie
Posts: 3
Joined: Sun Jan 19, 2003 3:59 pm

PHP and MySql problem!

Post by dynasty »

I just upgraded to Redhat Linux 8, and installed everything(apache,php and mysql) off of the install of Redhat 8. Everything is working fine except when I try to access the mysql from a PHP script. I get the Fatal error: Call to undefined function: mysql_connect() . I reinstalled Apache and MySql and all the configure options were correct. However how can I remove PHP so that I can then reinstall it, I did this and it was still using the old PHP version 4.2.2 instead of the one just installed. Also is the reinstalltion of PHP neccessary as when I use the phpinfo() function in a php script, in the results I get this --with-mysql=shared,/usr. That seems to lead me to believe that PHP is compiled with MySql. I have searched and searched google for something that applies to this case and am starting to run out of ideas. Any help would be greatly appreciated. :twisted: :evil: :twisted: :evil: :twisted: :evil: 8O [/b]
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

there should be a module php-mysql somewhere on your distribution cd. Install it as well and try again.

see also: http://www.redhat.com/swr/i386/php-mysq ... .i386.html
Post Reply