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

 

 

Link to comment
Share on other sites

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.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.