时间:2021-07-01 10:21:17 帮助过:117人阅读
具体实现代码如下:
代码如下:
<?php
$sql="select * from checklist where game_id=$gid and task='$task' and status='$status'";
$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程序设计有所帮助。