Call to undefined function mysql_connect()

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Call to undefined function mysql_connect()

Postby gyq » 11. December 2009 10:54

Just completed XAMPP 1.7.2 install for windows 2003 and encountering this error while testing simple connection script:

Debug Error: C:\xampp\php\PEAR\adodb\drivers\adodb-mysql.inc.php line 363 - Call to undefined function mysql_connect()

I have made no changes to the delivered php.ini file...

db = ADONewConnection("$mysql");
db->Connect("localhost", "$user", "$password", $test);

Thanks...
gyq
 
Posts: 2
Joined: 11. December 2009 10:38

Re: Call to undefined function mysql_connect()

Postby Nobbie » 11. December 2009 11:40

gyq wrote:Debug Error: C:\xampp\php\PEAR\adodb\drivers\adodb-mysql.inc.php line 363 - Call to undefined function mysql_connect()


"Debug Error" ---> you are NOT running your application in the Xampp environment (Apache plus Browser), but in a (completely different) debug environment.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Call to undefined function mysql_connect()

Postby gyq » 12. December 2009 00:40

Sorry... that was the clue... right in front of me. This was only happening when running in Eclipse.

Upgraded to Eclipse for PHP Developers Build id: 20090920-1017... with updated Zend debugger "org.zend.php.debug.debugger_5.3.7.v20091124".

It seems that XAMPP 1.7.0 worked well with the old Eclipse Platform Version: 3.3.2 Build id: M20080221-1800 and Zend debugger "org.zend.php.debug.debugger_5.2.14.v20080602". But XAMPP 1.7.2 needs the newer version of Eclipse.

Thanks... all is well
gyq
 
Posts: 2
Joined: 11. December 2009 10:38


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 114 guests