Jump to content

Undefined mysql functions - PHP523 - IIS5 - WinXP


marz

Recommended Posts

I have a working IIS/PHP/Mysql on my desktop PC. I am currently for a 6weeks holiday in Finland and trying to install everything on my laptop to work with my php/mysql website related to this nature work-holiday. I got everything running (PHP pages showing well on the browser and mysql database loaded on mysql query browser) but I cannot get php-mysql to work becasue i get an "unidentifed mysql function" when I have the command mysql_connect in the php script.

 

Running phpinfo I noticed that I do not have mysql in the modules section. This is my 3 rd spoiled day trying to solve the problem and now I gave up. I have copied libmysql.dll everywhere (php dir, php/ext, windows/, windows/system32, windows/ext, inetsrv/ ) I tried several paths in dir_extensions of php.ini and unchecked the mysql and mysqli extensions.

 

PHP simmply does not want to reckognize my MYSQL plug-in or whatever is called. I have PHP 5.23 and Mysql 5.0. I copied the working php.ini (PHP521) of the desktop onto the php.ini on my laptop to be sure that the settings are good (since coming from a working installation)

 

 

Please I really need help because I have to create a database-driven about the wild plants in Finland. I am quite technical.

 

I assume that Mysql 5 and php 5 is installed well and it is something with IIS or php.ini

Thank you

 

 

HI,

 

did you try a sample php file with phpinfo(); ?? If you have mysqli section, that means you're mysqli extensions is loaded. And you should try mysqli_connect() instead of mysql_connect(). This work fines with MYSQL 5+. ;) and it is juste a bit different of mysql_connect().

 

http://ca3.php.net/manual/fr/function.mysqli-connect.php for more info.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.