日期:2014-05-17 浏览次数:20589 次
$query = "select name,class,schoolid from studentslist where class like '$query_class' and name like '$query_name' ";
echo $query.'<br>';
$result = MySql_query($query, $id);
// if($result)echo 'query success';
$totalnum = MySql_num_rows($result);
echo $totalnum.' records found.';
if ($totalnum < 1) {
echo "<p align=left>未找到 " . $query_class . " 班姓名为 " . $query_name . " 的学生记录。</p>";
}