$result=mysql_query($sql);
$row = mysql_fetch_array($result, MYSQL_ASSOC);
if (!mysql_num_rows($result))
{
echo "record doesn't exist~~~~~!!!!!!";
}
else
{
// echo mysql_num_rows($result)."\n";
echo $row['game_id'];
echo $row['task'];
}
?>
希望本文所述对大家的PHP程序设计有所帮助。