PHP显示数据库内表格信息,为什么表格上方会多出一排小点

//打印表格的代码<html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/></head><?php require_once 'EmpService.class.php'; //显示所有用户信息的表格 //查询数据 $pageSize=5; $rowCount=0;//这个变量值从数据库获取 $pageNow=1;//显示第几页 //这里我们需要根据用户的点击来修改$pageNow if(!empty($_GET['pageNow'])){ $pageNow=$_GET['pageNow']; } //创建一个empService对象 $empService=new EmpService(); //调用GetpageCount方法获取$pageCount $pageCount=$empService->GetpageCount($pageSize); //调用GetpageCount方法获取$pageNow页的表格信息 $res2=$empService->GetEmpListByPage($pageNow,$pageSize); //打印表格信息 echo "<table border=1 width='700px'>"; echo "<tr><th>id</th><th>name</th><th>sex</th><th>age</th><th>tel</th><th>email</th><th>修改用户</th><th>删除用户</th></tr>"; /*while($row=mysql_fetch_assoc($res2)){ echo "<tr><td>{$row['id']}</td><td>{$row['name']}</td><td>{$row['sex']}</td>. <td>{$row['age']}</td><td>{$row['tel']}</td><td>{$row['email']}</td>. <td><a href='#'>修改用户</a></td><td><a href='#'>删除用户</a></td></tr>"; }*/ for($i=0;$i<count($res2);$i++){ $row=$res2[$i]; echo "<tr><td>{$row['id']}</td><td>{$row['name']}</td><td>{$row['sex']}</td>. <td>{$row['age']}</td><td>{$row['tel']}</td><td>{$row['email']}</td>. <td><a href='#'>修改用户</a></td><td><a href='#'>删除用户</a></td></tr>"; } echo "</table>"; $empService->PrintEnd($pageNow,$pageCount);?><form action="empList.php" >跳转到第<input type="text" name="pageNow"/>页 <input type="submit" value="GO"/></form></html>

右键查看源码,看看具体是什么内容。

要学会二分调试法:

A - B - C
1. åœ¨B处die退出,确认错误输出是否还有,如果有,说明A-B包含错误数据输出,
    åä¹‹ï¼ŒB-C包含错误数据输出。
2. ç”±1得到错误数据输出区间,再二分成,比如 A - D - B,在D点die,重复1。
温馨提示:答案为网友推荐,仅供参考

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网