mysql_connect() undefined function error
Status: Alpha
Brought to you by:
go2main
I have setup the MySQL tables, and edit the config file,
but I still get this error?
php index.php
X-Powered-By: PHP/4.1.2
Set-Cookie:
PHPSESSID=d567a13c2602eb6734fedb863a1ce2ee;
path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-
check=0, pre-check=0
Pragma: no-cache
Content-type: text/html
<br>
<b>Fatal error</b>: Call to undefined function:
mysql_connect() in
<b>/home/esl/httpdocs/config/config.inc.php</b> on line
<b>95</b><br>
Logged In: NO
this error mean that php is compiled without mysql support
to be sure just use phpinfo();
to get mysql work you must add this directive when compiling php
--with-mysql=/dir
if you are using RPM's you need to find the
php-4.1.2-mysql.rpm (or other package having a similar name
depending on your distrib)
and install it
shell# rpm -ivh package.rpm
that's all