1. mysql_fetch_row
<?
while($rs=mysql_fetch_row($result))
{
//echo "<table><tr><td>id:".$rs->id."</td></tr>";
//echo "<tr><td>name:".$rs->name."</td></tr></table><br/>";
}
?>
2. mysql_fetch_array($result)
while($row = mysql_fetch_array($result))
{
$data[]=$row;
echo $row[0]."<hr>";
}
3. mysql_fetch_assoc
while($row1=mysql_fetch_assoc($rs1))
{
echo "sag=".$row1["id"]."<br>";
}
4. $rs=mysql_fetch_object($result)
<?
while($rs=mysql_fetch_object($result))
{
// echo "<table><tr><td>id:".$rs->id."</td></tr>";
// echo "<tr><td>name:".$rs->name."</td></tr></table><br/>";
?>