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?

5 of 26 people (19%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

"Fatal error: Call to undefined function mysql_connect()....."getting this error

Feb 20th, 2007 00:59
Articles Hosting, Abhijith Vijayan, Sarika,


Most times if you have an error like this it will be due to wrong 
compilation 
of php. If you get the phpinfo page correctly then it will due to the 
mysql 
support given to php. 
The chance is that php will be compiled with mysqli support. You can 
see this 
in phpinfo page. So you have to chage the mysql functions to mysqli 
functions.
ie as mysql_connect() to mysqli_connect().
But the point to note is that the syantaxs are different for some 
function 
between mysql and mysqli functions.
If you have any doubts contact me on [email protected]
===
osticket.com/forums/showthread.php?t=1125
i hope that help.
http://americanahost.com
http://www.qwesz.com