Jump to content


unable to connect mysql server

  • Please log in to reply
2 replies to this topic

#1 skydrop

  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 05 June 2006 - 02:33 AM


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

$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

#2 fenway

  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 05 June 2006 - 03:37 PM

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.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#3 wildteen88

  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 05 June 2006 - 03:50 PM

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.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users