note 18389 added to function.mysql-fetch-array

From: Date: Mon, 21 Jan 2002 10:19:10 +0000
Subject: note 18389 added to function.mysql-fetch-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-25616@lists.php.net to get a copy of this message
Hi to enumerate a result set with out worrying abt null values just use below code. while($myrow = mysql_fetch_row$result)) { print " <tr> "; for($x=0;$x<=count($myrow);$x++) { print "<td bgcolor=><font face=Arial size=1>$myrow[$x]</font></td>"; } print "</tr>"; } -- http://www.php.net/manual/en/function.mysql-fetch-array.php http://master.php.net/manage/user-notes.php?action=edit+18389 http://master.php.net/manage/user-notes.php?action=delete+18389 http://master.php.net/manage/user-notes.php?action=reject+18389

« previous php.notes (#25616) next »