note 8882 added to mysql_connect

From: Date: Wed, 04 Oct 2000 06:08:29 +0000
Subject: note 8882 added to mysql_connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-5999@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 ************************************* <?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> <?php echo "<td>" . mysql_result($result,0,"Name") . "</td>\n"; echo "<td>" . mysql_result($result,0,"Email") . "</td>\n"; ?> </tr> </table> http://www.php.net/manual/function.mysql-connect.php

« previous php.notes (#5999) next »