MySQL Forums
Forum List  »  PHP

Re: Fatal error: Call to undefined function mysql_connect()
Posted by: Sergio Torres
Date: August 22, 2008 08:05PM

I had the same problem with the following setup:
PC with Windows XP Pro SP3
IIS
MySQL 5.0
PHP 5.2.6
It turned out that with PHP 5+ the extension used is MySQLi and I had to use mysqli_connect() (that's an i added after mysql) instead of mysql_connect(). As soon as I changed the function name, it worked.
PHP help has all mySQLi functions included uner "MySQL Improved Extension".

Options: ReplyQuote


Subject
Written By
Posted
Re: Fatal error: Call to undefined function mysql_connect()
August 22, 2008 08:05PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.