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()); Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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.