Entry
What I do wrong to connect to a mysql DB-> Call to unsupported or undefined function mysql_connect()
Feb 25th, 2008 23:56
dman, Philip Olson, Lee Forkenbrock, vincent moravec, http://www.ttnr.org
This means your version of PHP was not compiled with MySQL support.
Either recompile it with MySQL support or add the appropriate RPM.
RPM's can be found here:
http://rpmfind.net/linux/rpm2html/search.php?query=php-mysql
Or if you're running Debian linux, simply do:
apt-get install php4-mysql
At any rate, you must have MySQL support. Be sure the MySQL client
library is also installed on your server. More information on
installing MySQL with PHP can be seen here:
http://www.php.net/manual/en/ref.mysql.php
If this is a web host then you must ask your system administrator to
add MySQL support for you. A call to phpinfo() will tell you which
modules were compiled into your PHP, so, a script such as:
<?php
phpinfo();
?>