note 57823 rejected from function.mysql-connect by nlopess

From: Date: Sat, 15 Oct 2005 09:02:00 +0000
Subject: note 57823 rejected from function.mysql-connect by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-97059@lists.php.net to get a copy of this message
Note Submitter: freedomkw at hotmail dot com ---- I new to php, installed php5 and mysql 4 my system running iss 5.1 trying to understand how it work but i could not connect to server using the code listed below <?php $link = mysql_connect('localhost', 'root', ''); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; mysql_close($link); ?> i always receive error Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\connect.php on line 2 anyone there please help me to figure out what is the problem

« previous php.notes (#97059) next »