Placid Posted November 5, 2012 Share Posted November 5, 2012 Dear Masters: I am very new to to PHP & MySQL. I have just followed the instruction in the book to install XAMPP (v 3.0.12) on my Windows 7 PC. I tested PHP as per the instruction and it was successful. But testing PHP and MySQL failed and showed the following error: Fatal error: Call to undefined function msqli_connect() in C:\xampp\htdocs\mysqli_test.php on line 2 I am almost sure I followed the instructions exactly. But the above error comes. I looked for solutions in other posts but could not find it. Anyone, please help. Thank you. Placid Link to comment Share on other sites More sharing options...
HartleySan Posted November 5, 2012 Share Posted November 5, 2012 msqli_connect is not a valid function (i.e., it does not exist in PHP). The correct function name is the following: mysqli_connect Fix your spelling error, and you should be fine. Thanks. 1 Link to comment Share on other sites More sharing options...
Placid Posted November 6, 2012 Author Share Posted November 6, 2012 Dear HartleySan, Please accept my respect and gratitude for your response and also my apology for this dumb mistake. I looked here and there and specially read the whole Appendix of the book once again, but did not see that spelling error. Corrected the spelling and it worked. Thank you again. Placid Link to comment Share on other sites More sharing options...
HartleySan Posted November 6, 2012 Share Posted November 6, 2012 No problem, and you don't have to be so humble and apologetic. We all make mistakes (and most dumber than that), so don't feel bad. Link to comment Share on other sites More sharing options...
Placid Posted November 6, 2012 Author Share Posted November 6, 2012 Dear HartleySan, The following messages come when I start XAMPP (though the examples in the first Chapter are working accurately). Can you please give me a hint if I need to do anything about these. 10:53:12 AM [main] Initializing Control Panel 10:53:12 AM [main] Windows Version: Windows 7 Ultimate 64-bit 10:53:12 AM [main] XAMPP Version: 1.8.0 10:53:12 AM [main] Control Panel Version: 3.0.12 [ Compiled: June 24th 2012 ] 10:53:12 AM [main] You are not running with administrator rights! This will work for 10:53:12 AM [main] most application stuff but whenever you do something with services 10:53:12 AM [main] there will be a security dialogue or things will break! So think 10:53:12 AM [main] about running this application with administrator rights! 10:53:12 AM [main] XAMPP Installation Directory: "c:\xampp\" 10:53:12 AM [main] Initializing Modules 10:53:12 AM [apache] Apache Service Detected With Wrong Path 10:53:12 AM [apache] Uninstall the service manually first 10:53:12 AM [apache] Possible problem detected! 10:53:12 AM [apache] Port 80 in use by "httpd.exe"! 10:53:12 AM [apache] Possible problem detected! 10:53:12 AM [apache] Port 443 in use by "httpd.exe"! 10:53:12 AM [mysql] MySQL Service Detected With Wrong Path 10:53:12 AM [mysql] Uninstall the service manually first 10:53:12 AM [mysql] Possible problem detected! 10:53:12 AM [mysql] Port 3306 in use by "mysqld.exe"! 10:53:12 AM [main] Starting Check-Timer 10:53:12 AM [main] Control Panel Ready I appreciate your response. Thanks Placid Link to comment Share on other sites More sharing options...
HartleySan Posted November 6, 2012 Share Posted November 6, 2012 I had something similar once before too, but after restarting my computer, it was okay. If the problem happens repeatedly, I'd recommend uninstalling and reinstalling XAMPP, and then trying again. Link to comment Share on other sites More sharing options...
Recommended Posts