Skip to Content

Can't use MySQL functions from PHP4 or 5

topquarck's picture

hi all I have been trying to connect to a local mySQL database from MySQL but an error message appears :"mysql_connect() undefined function" or something like that .. i tried to find help at php.net but their solution didn't work either... if anyone can help me quickly, I will be very grateful.

thanx all

Alaa's picture

install php-mysql

what is your distribution?

on most mysql support in php is a seperate package, so you must install the php-mysql package (or some similar name)

in Mandrake you'd do

you might have to restart apache after installing the php-mysql package to make sure it loaded

might be slightly different depending on your distribution.

Alaa


"i`m feeling for the 2nd time like alice in wonderland reading el wafd"

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


Dr. Radut | forum