MySQL Forums
Forum List  »  PHP

Re: Fatal error: Call to undefined function mysql_connect()
Posted by: narsing gopagoni
Date: June 01, 2008 11:16PM

hi
this is narsing.
i installed php 5.
when i tried to connect to mysql with php 5

<?php

$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = 'password';

$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die('Error connecting to mysql');

?>
it is throwing error like Call to undefined function mysql_connect() in /root/connect_sql.php on line 7
iam using suse 9.3,
please somebody help me .

Options: ReplyQuote


Subject
Written By
Posted
Re: Fatal error: Call to undefined function mysql_connect()
June 01, 2008 11:16PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.