MySQL Forums
Forum List  »  PHP

Re: Fatal error: Call to undefined function mysql_connect()
Posted by: GOMATHI KUMARAKRISHNAN
Date: October 18, 2007 10:19PM

I had a problem like Fatal Error: Call to undefined function mysqli_connect().
I had solved it by doing the following steps.
I have installed php on D:\php. So, I added the path to D:\php and D:\php\ext in the system path. I created a system environment variable as phprc=d:\php.
Then I edited the php.ini file and changed the line
extension_dir = "d:\php\ext".
I enabled the line extension=php_mysql.dll and
I added the line extension=php_mysqli.dll.
Then I restarted the Web server.
In this way I solved the problem.

Options: ReplyQuote


Subject
Written By
Posted
Re: Fatal error: Call to undefined function mysql_connect()
October 18, 2007 10:19PM


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.