Jump to content


Having PHP installed, But get undefined functions error!!

  • Please log in to reply
1 reply to this topic

#1 scadran

  • Members
  • PipPip
  • Member
  • 12 posts
  • LocationFamagusta - Cyprus

Posted 24 July 2006 - 04:03 PM

Hey guys
I have just installed PHP with MySql with Apache server. I have installed PHPMyAdmin too. I could successfully enter to PHPmyAdmin and login and use it properly. But when I code a PHP source myself and call it from localhost, nothing displays. I have debugged the php file in Zend Studio. It gave me this error:
"Debug Error: ..\config.php line 11 - Call to undefined function mysql_connect()"
To tell you that I am sure about the correctness of my codes, I have paste them here:

$link = mysql_connect($db_host, $db_user, $db_pass);
if (!$link) {
    die('Could not connect: ' . mysql_error());
echo 'Connected successfully';

What do you think the problem is? Can anybody help???

#2 wildteen88

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

Posted 24 July 2006 - 04:04 PM

Please read this FAQ

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users