faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

18 of 46 people (39%) answered Yes
Recently 3 of 10 people (30%) answered Yes


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:
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:
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: