note 13429 deleted from function.mysql-fetch-row by philip

From: Date: Mon, 26 Feb 2007 06:58:14 +0000
Subject: note 13429 deleted from function.mysql-fetch-row by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-123878@lists.php.net to get a copy of this message
Note Submitter: jpaulo at fischer dot med dot br ---- Here is a simple and very fast way I use to return results using the foreach construct: $results = mysql_query($query); $results_array = mysql_fetch_row($results); foreach($results_array as $i => $data) { print "<li>$i: $data"; } If you don't need the element's key just use: foreach ($results_array as $data) { print $data; } Regards, Joao Paulo M. Fischer

« previous php.notes (#123878) next »