note 7660 deleted from mysql_db_query by danbeck

From: Date: Thu, 07 Sep 2000 15:29:56 +0000
Subject: note 7660 deleted from mysql_db_query by danbeck
Groups: php.notes 
Request: Send a blank email to php-notes+get-4367@lists.php.net to get a copy of this message
After enormous hassle and contradictory documentation (yes, on php.net!), I have success with the following sequence of commands... $link = mysql_pconnect("localhost", "nameofdatabase", "password"); $sql = "select * from whatever;"; $result = mysql_db_query(dbname(), $sql, $link); //then you can do something like: while ($row=mysql_fetch_array($result)) print ($row['columnname']);

« previous php.notes (#4367) next »