时间:2021-07-01 10:21:17 帮助过:38人阅读
$conn=mysql_connect('localhost','root','admin') or die('could not connect: '.mysql_error());
mysql_select_db('sybgtjxt') or die('could not select database');
mysql_query("set names gbk" );
if(mysqli_connect_errno()){
echo"数据库连接失败";
}
else{
$pagesize=5;
if($_GET['page']!='')
$page=$_GET['page'];
else {
$page=1;
}
$sql1="select * from tblreport where is_modify=0 order by sid desc";
$rs=mysql_query($sql1); $numRecord=mysql_num_rows($rs); //echo"$numRecord"; //echo "$page"; $totalpage=ceil($numRecord/$pagesize); //echo"$totalpage"; $recordSql=$sql1." limit ".(($page-1)*$pagesize).",".$pagesize; $result=mysql_query($recordSql); //if($result) //echo"成功"; // else //echo "失败"; //$rst=mysql_fetch_array($rs); //echo $rst['pname']; }?>
作业评分>>批改作业
学生姓名: