note 30951 added to function.mysql-connect

From: Date: Fri, 04 Apr 2003 07:02:13 +0000
Subject: note 30951 added to function.mysql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-46207@lists.php.net to get a copy of this message
When I used this program (I saved it as testconnect.php): <?php $link = mysql_connect('localhost', 'root', '0000') or die("Could not connect: " . mysql_error()); print ("Connected successfully"); mysql_close($link); ?> then it displayed following error message: Fatal error: Call to undefined function: mysql_connect() in /home/Mary/public_html/testconnect.php on line 2 Can anybody tell me why? I used PHP version 4.1.2 in RetHat -- http://www.php.net/manual/en/function.mysql-connect.php http://master.php.net/manage/user-notes.php?action=edit+30951 http://master.php.net/manage/user-notes.php?action=delete+30951 http://master.php.net/manage/user-notes.php?action=reject+30951

« previous php.notes (#46207) next »