MySQL Forums
Forum List  »  Newbie

error: Call to undefined function mysql_connect() .....
Posted by: John Werner
Date: May 11, 2005 11:13PM

Hi all,

I'm running MySQL 4.1 with PHP 5.0.2 on Windows 2000. However I cannot
connect to the database. I receive the folowing error:

Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\filea.php on line 8

My system's particulars are:
1.
The system path on my system is set as follows:
C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\
Program Files\MySQL\MySQL Server 4.1\bin;C:\PHP5;C:\PHP5\ext;

2.
The php.ini file is set to the full path of the 'ext' directory in
my PHP installation, i.e.
extension_dir = "C:\PHP5\ext\"
The "extension=php_mysql.dll" line is not commented in my php.ini file.

3.
The information page from phpinfo() does not include a
separate section called “mysql” as I believe it should.
The extension_dir in phpinfo() is set to C:\php5

Can anyone tell me what I am doing wrong?
Thanks in advance.
John

Options: ReplyQuote


Subject
Written By
Posted
error: Call to undefined function mysql_connect() .....
May 11, 2005 11:13PM


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.