Mysql result all
Page 1 of 1
Mysql result all
- Code:
<!-- This Script is from www.freecodescript.com, Coded by: Krishna Eydatoula, Mahmood Bina-->
function mysql_result_all($result) \{
$nrow = 0;
echo('<table border=1 cellpadding=5 cellspacing=0><tr><th>Row</th>
');
for($i = 0; $i < mysql_num_fields($result); $i++) echo('<th>'.mysql_field_name($result, $i).'</th>
');
echo('</tr>
');
while($row = mysql_fetch_array($result)) \{
echo('<tr><td>$nrow</td>');
for($i = 0; $i < mysql_num_fields($result); $i++) echo('<td>$row\[$i]</td>
');
echo('</tr>
');
$nrow++;
\}
echo('</table>
');
\}
<br><font face='Tahoma'><a target='_blank' href='http://www.freecodescript.com/'><span style='font-size: 8pt; text-decoration: none'>Free Code Script</span></a></font>
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum