@
yes, the 0 is row,
the full syntax mysql_result($sql,$row,$col);
but forget this syntax, mysql_fetch_array and mysql_fetch_row are much faster than result 🙂
@
<?php
include("dblib.lib");
for($a = 0; $a <=100 ; $a++) {
$sql = mysql_query("Select count(*) from test where id = '".$a."'");
$query = mysql_result($sql,0);
if(!$query) {echo mysql_error();} else
$array[] = "rows have ".$a." = ".$query."<br>";
}
?>
then you have a variable $array, with it, you can simple add into your html tag
<html>
<td><?php echo $array[0]</td>
.
.
etc