时间:2021-07-01 10:21:17 帮助过:18人阅读
$query = "select name,class,schoolid from studentslist where class like '$query_class' and name like '$query_name' ";分享到:
echo $query.'
';
$result = MySql_query($query, $id);
// if($result)echo 'query success';
$totalnum = MySql_num_rows($result);
echo $totalnum.' records found.';
if ($totalnum < 1) {
echo "未找到 " . $query_class . " 班姓名为 " . $query_name . " 的学生记录。
";
}