skydrop Posted June 5, 2006 Share Posted June 5, 2006 Hi every one,I am unable to connect to the mysql server it has showing me fatal errorFatal error: Call to undefined function mysql_connect() in e:\webroot\temp_con.php on line 3This is my code <?php require($_SERVER["DOCUMENT_ROOT"]."/config/db_config.php"); $connection = mysql_connect($db_host, $db_user, $db_password) or die (" could not connect "); echo "connection made";?>can any one help me what is the problem i tried alot but cant suceed Quote Link to comment https://forums.phpfreaks.com/topic/11206-unable-to-connect-mysql-server/ Share on other sites More sharing options...
fenway Posted June 5, 2006 Share Posted June 5, 2006 Sounds like the mysql extension isn't installed properly... check your php.ini file and apache set-up. The PHP manual has a detailed explanation of how to get it working. Quote Link to comment https://forums.phpfreaks.com/topic/11206-unable-to-connect-mysql-server/#findComment-42055 Share on other sites More sharing options...
wildteen88 Posted June 5, 2006 Share Posted June 5, 2006 Or you can read my post [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=87276\" target=\"_blank\"]here[/a] which will help you to enable the mysql extension. Quote Link to comment https://forums.phpfreaks.com/topic/11206-unable-to-connect-mysql-server/#findComment-42059 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.