Hi,
I’m getting “fatal error call to undefined function mysql_connect” error when connecting to MySQL. This is my first code and followed the steps on page 117 in the PDF help provided by sitepoint.
Thanks - jluniya
Hi,
I’m getting “fatal error call to undefined function mysql_connect” error when connecting to MySQL. This is my first code and followed the steps on page 117 in the PDF help provided by sitepoint.
Thanks - jluniya
Providing some background. I have followed “BUILD YOUR OWN DATABASE DRIVEN WEB SITE USING PHP & MYSQL BY KEVIN YANK 4TH EDITION” I have followed all the steps exactly how it is mentioned in the doc (freely avaialble online PDF version) till page 117 and worked fine.
But whenever I used to start Apache service, I get below error in apache log file.
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\\PHP\\ext\\php_mysql.dll’ - The specified module could not be found.\r
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\\PHP\\ext\\php_mysqli.dll’ - The specified module could not be found.\r
in Unknown on line 0
This means these DLLs are not getting loaded. The version of both DLLs are 5.2.17.17. My OS is Win7 and using Apache 2.2, PHP 5.2.17, MySQL 5.5.9.
PHP location - C:\PHP
Apache location - C:\Program Files\…
MySQL Location - C:\Program Files\…
Does this look like any security or permission issue?
I will also give a try to copy these DLLs sepeartely from some other PHP version and try.
Thanks
This worked fine now. Looks like the problem with PHP 5.2 version. With PHP 5.3 it worked fine.