note 8882 deleted from mysql_connect by ronabop

From: Date: Wed, 04 Oct 2000 15:50:34 +0000
Subject: note 8882 deleted from mysql_connect by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-6081@lists.php.net to get a copy of this message
Hi, I got this error, when testing a simple php3 script. Fatal error: Call to unsupported or undefined function mysql_connect() in /home/greetings/simple.php3 on line 4 Have I missed out anything that cannot recognize the connect function? Cheers! Ivan Chui ************************************* &lt;?php $db = mysql_connect("localhost","root"); mysql_select_db("test",$db); $sql = "SELECT Name, Email FROM test.MasterMember "; $result = mysql_query($sql,$db); ?> <table> <tr> <th>Name</th><th>Email</th> </tr> <tr> &lt;?php echo "<td>" . mysql_result($result,0,"Name") . "</td>n"; echo "<td>" . mysql_result($result,0,"Email") . "</td>n"; ?> </tr> </table>

« previous php.notes (#6081) next »