gevensen Posted September 9, 2009 Share Posted September 9, 2009 Im about to pull my hair out all of a sudden on wamp server i am getting Fatal error: Call to undefined function mysql_connect() in C:\wamp\www\sc\indexes\d56b699830e77ba53855679cb1d252da.php on line 10 where d56b699830e77ba53855679cb1d252da.php is my login page funny thing it works fine on my internet server but all of a sudden on wamp its calling mysql_connect() undefined??? any ideas?? its been working for months, i made no changes then all of a sudden today boom i am using php 5.2.8 on wampserver mysql_connect($servername, $dbusername, $dbpassword) or die(mysql_error()); $dbname=$masterlogin; mysql_select_db($dbname) or die("CANNOT SELECT DATABASE - ".$dbname." ". mysql_error()); Link to comment https://forums.phpfreaks.com/topic/173719-solved-fatal-error-call-to-undefined-function-mysql_connect-in-cwampwwwscindexe/ Share on other sites More sharing options...
trq Posted September 9, 2009 Share Posted September 9, 2009 Make a simple phpinfo page. <?php phpinfo(); ?> Does this show that you have mysql enabled? Otherwise, make sure the mysql extension isn't commented out within your php.ini. Link to comment https://forums.phpfreaks.com/topic/173719-solved-fatal-error-call-to-undefined-function-mysql_connect-in-cwampwwwscindexe/#findComment-915725 Share on other sites More sharing options...
gevensen Posted September 19, 2009 Author Share Posted September 19, 2009 my php.ini got corrupted somehow i restored a saved copy and all was well Link to comment https://forums.phpfreaks.com/topic/173719-solved-fatal-error-call-to-undefined-function-mysql_connect-in-cwampwwwscindexe/#findComment-921380 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.