marz Posted July 18, 2007 Share Posted July 18, 2007 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 https://forums.phpfreaks.com/topic/60501-undefined-mysql-functions-php523-iis5-winxp/ Share on other sites More sharing options...
frederici Posted July 18, 2007 Share Posted July 18, 2007 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 https://forums.phpfreaks.com/topic/60501-undefined-mysql-functions-php523-iis5-winxp/#findComment-301643 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.