note 18389 deleted from function.mysql-fetch-array by felipe
| From: | felipe@php.net | Date: | Fri, 04 Jan 2008 01:37:47 +0000 |
| Subject: | note 18389 deleted from function.mysql-fetch-array by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134741@lists.php.net to get a copy of this message | ||
Note Submitter: techquest at onebox dot com
----
Hi to enumerate a result set with out worrying about null values just use below code.
while($myrow = mysql_fetch_row($result))
{
print " <tr> ";
for($x=0; $x <= count($myrow); $x++)
{
print "<td>myrow[$x]</td>";
}
print "</tr>";
}
[ed note: tidied code so it actually works]