2014-01-14 33 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"] 
} 

}