Jump to content

Archived

This topic is now archived and is closed to further replies.

skydrop

unable to connect mysql server

Recommended Posts

Hi

every one,

I am unable to connect to the mysql server it has showing me fatal error

Fatal error: Call to undefined function mysql_connect() in e:\webroot\temp_con.php on line 3

This 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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.