yshua Posted October 5, 2012 Share Posted October 5, 2012 Dear very helpful people: Have MySQL5.1.65, Apache2.2, PHP5.3.8, Win 7 with the following code: <?php $mysql = mysql_real_connect('localhost', 'root', 'mypassword', 'mydatabase'); if (!$mysql) { die('Could not connect: ' . mysql_error()); } ?> generating the following emsg: Fatal error: Call to undefined function mysql_real_connect() in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\includes\db.php on line 2 Was reading after googling the emsg and read somewhere about using the extension, php5_mysql.dll in php.ini file. But am unable to find php5.mysql.dll anywhere. Currently have extension = php_mysql.dll. Headache continues, need help, Yshua Link to comment https://forums.phpfreaks.com/topic/269137-configuring-to-allow-mysql_real_connect-with-latest-emsg/ Share on other sites More sharing options...
yshua Posted October 5, 2012 Author Share Posted October 5, 2012 Dear folks: We got it now! Works with mysql_connect and mysql_select_db, which solves my problem! Thanks for all your help in many questions along the way. Bravo, Yshua Link to comment https://forums.phpfreaks.com/topic/269137-configuring-to-allow-mysql_real_connect-with-latest-emsg/#findComment-1383095 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.