Page 1 of 1

php not connecting with mysql

Posted: Mon Dec 22, 2008 7:30 am
by arshadmilad
hi, everyone. is there anyone who can fix my problem? i am new to php and mysql. i am having problem to connect php with mysql. i am using php 5 and mysql 5. but when i want to connect error message generated. "fatal error undefined function phpmysqli_connect()" or "fatal error undefined function phpmysql_connect()". plz help why? :banghead:

Re: php not connecting with mysql

Posted: Mon Dec 22, 2008 7:33 am
by The_Anomaly
As unfortunate as it might seem, we're not omniscient. Please post your code and information about your setup if you want any meaningful response.

Re: php not connecting with mysql

Posted: Mon Dec 22, 2008 9:37 am
by John Cartwright
Mysql is not enabled by default for php version greater than 5.0. Open up your php.ini and enable the extension (don't forget to restart apache to have the changes take effect).