2014-01-14 34 views

回答

0

mysql_fetch_assoc返回結果數組,包括您通過查詢獲得的所有列。你需要做的是,

while ($row = mysql_fetch_assoc($result)) 
{ 
echo $row["primary_key"]; 
echo $row["other_value"]; 

if($row["other_value"]==something) 
{ 
    //Update the table with $row["primary_key"] 
} 

}