Undefined Function Error MySQL_Connect
I have a problem when trying to use mysql_connect. Apache returns and undefined function 'MySQL' error. I have just loaded RH linux 8 and php is processing requests and the MySQL daemon is running and active - I am able to use the db fine.
Any ideas on how to solve this would be appreciated.
In terms of what version of apache I am using, I need to find out. I am wrking right now but will reply in 5 hours.
Thanks in advance
mike
Some output from phpinfo();
Running php 4.4.2
Zend Engine v1.2.0
Compiled Modules:
Yp
XML
wddx
sysvshm
sysvsem
standard
sockets
shmop
session
pspell
posix
pcre
openssl
ncurses
iconv
gmp
gettext
gd
ftp
exif
domxml
dio
dbx
dba
curl
ctype
calendar
bzz
bcmath
zlib
imap
ldap
The exact error call: Call to undefined funtion mysql_connect() in /var/www/html/feedback.php on Line 9
Line 9:
%conn = mysql_connect("localhost");
There are no compiled in modules despite the fact that I am using version 4.2.2. I appreciate the comments despite the fact that I have taken yonks to respond - I learn programming at home and program at work, if that provides explanation. It seems that I need to compile a MySQL module into php. Any pointers here...?
Many Thanks
Mike