Page 1 of 1

php_mysql.dll works, php_mysqli.dll does not

Posted: Tue Jul 05, 2011 3:42 pm
by bobthebuilder
Hello

When I uncomment

Code: Select all

;extension=php_mysqli.dll
in my php.ini file, mySQL doesn't work (Fatal error: Call to undefined function mysql_connect()) despite the ext dir being set up and php_mysqli.dll existing in that directory.

But when instead I uncomment

Code: Select all

extension=php_mysql.dll
mySQL works fine!

All I can think of is that php_mysqli.dll has got corrupted, but that's pretty unlikely. Does anyone have any ideas?

Many thanks

Re: php_mysql.dll works, php_mysqli.dll does not

Posted: Tue Jul 05, 2011 4:19 pm
by AbraCadaver
Well, they are different extensions and provide different functions. If you use php_mysqli then you use mysqli_connect() and related functions and if you use php_mysql then you use mysql_connect() and related functions.

Re: php_mysql.dll works, php_mysqli.dll does not

Posted: Tue Jul 05, 2011 5:03 pm
by bobthebuilder
Oops, well that's embarrassing. Thanks!