markrumford Posted March 21, 2008 Share Posted March 21, 2008 Hi New to this so please forgive my ignorance I work off a laptop connected to a nt server behind a firewall. Have just installed Apache/MySQL/PHP (in that order) and configured everything in accordance to "PHP $ MySQL for Dummies" but then get stuck at the first hurdle trying to see if MySQL is operating. I get the following error message Fatal error: Call to undefined function mysqli_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\mysql_up.php I realize that this is probably telling me that MySQL is probably not working but I can't seem to do anything about it. Please Help Quote Link to comment https://forums.phpfreaks.com/topic/97233-cant-get-php-to-see-mysql/ Share on other sites More sharing options...
rhodesa Posted March 21, 2008 Share Posted March 21, 2008 That is a PHP problem. The MySQLi module isn't turned on. In your php.ini file, uncomment the module by changing this line: ;extension=php_mysqli.dll to this: extension=php_mysqli.dll Then reboot apache and try again Quote Link to comment https://forums.phpfreaks.com/topic/97233-cant-get-php-to-see-mysql/#findComment-497543 Share on other sites More sharing options...
markrumford Posted March 21, 2008 Author Share Posted March 21, 2008 Thankyou I have this line without the ; in my php.ini it doesn't change the error message though extension=php_mysqli.dll it doesn't change the error message though Quote Link to comment https://forums.phpfreaks.com/topic/97233-cant-get-php-to-see-mysql/#findComment-497553 Share on other sites More sharing options...
rhodesa Posted March 21, 2008 Share Posted March 21, 2008 Did you make sure to add PHP to the system path and reboot the system after doing so? http://us2.php.net/manual/en/faq.installation.php#faq.installation.addtopath Also, do the normal mysql functions work? (or at least not through "Call to undefined function" errors) Quote Link to comment https://forums.phpfreaks.com/topic/97233-cant-get-php-to-see-mysql/#findComment-497560 Share on other sites More sharing options...
markrumford Posted March 21, 2008 Author Share Posted March 21, 2008 Thankyou Its seems to be working just fine after that paths change Quote Link to comment https://forums.phpfreaks.com/topic/97233-cant-get-php-to-see-mysql/#findComment-497605 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.