note 55785 deleted from function.msql-query by mazzanet

From: Date: Sat, 13 Aug 2005 08:43:27 +0000
Subject: note 55785 deleted from function.msql-query by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-93536@lists.php.net to get a copy of this message
Note Submitter: tony85poon at yahoo dot com dot hk ---- wrong spelling! should be mysql instead of msql msql_connect("dbserver","name","password") <?php $link = msql_connect("dbserver") or die("unable to connect to msql server: " . msql_error()); msql_select_db("db", $link) or die("unable to select database 'db': " . msql_error()); $result = msql_query("SELECT * FROM table WHERE id=1", $link); if (!$result) { die("query failed: " . msql_error()); } while ($row = msql_fetch_array($result)) { echo $row["id"]; } ?>

« previous php.notes (#93536) next »