php分页问题 系统提示未定义变量Undefined variable: php_self
这个页面是一个可以正常显示列表的页面,单击“下一页”时,页数会发生变化,但是页面内容还是显示的第一页。系统提示第72和79行未定义变量Undefined variable: php_self 我应该怎样修改下?
<?php<br /> /*error_reporting(E_ALL ^ E_NOTICE);*/<br /> //######################课题列表##########################<br /> include "config.php";<br /> include "header.php";<br /> ?> <br> <meta http-equiv="Content-Type" content="text/html; charset=GB2312"><br> <br> <link href="style.css" rel="stylesheet" type="text/css"><br> <title>课题列表</title><br> <style type="text/css"><br> <!--<br /> .STYLE1 {font-size: 14px}<br /> --><br> </style><br> <table width="740" border="0" cellspacing="1" cellpadding="0" bgcolor="#333333" align="center"><br> <tr> <br> <td width="60" height="30" bgcolor="#FFFFFF"> <div align="center" class="text"> <p class="STYLE1">课题编号</p></div> </td><br> <td width="300" height="30" bgcolor="#FFFFFF"> <div align="center" class="title STYLE1">课题名称</div> </td><br> <td width="85" height="30" bgcolor="#FFFFFF"> <div align="center" class="STYLE1">指导教师</div></td><br> <td width="60" height="30" bgcolor="#FFFFFF"> <div align="center" class="STYLE1">职称</div> </td><br> <td width="60" height="30" bgcolor="#FFFFFF"> <div align="center" class="title STYLE1">可选人数</div> </td><br> <td width="80" height="30" bgcolor="#FFFFFF" class="title"><div align="center" class="STYLE1">选题情况</div> </td> <br> <td width="60" height="30" bgcolor="#FFFFFF" class="title"><div align="center" class="STYLE1">状态</div> </td><br> <td width="60" height="30" bgcolor="#FFFFFF" class="title"><div align="center" class="STYLE1">详细资料</div> </td><br> </tr><br> <?php<br /> $n=0; <br /> $query=mysql_query("select count(*) as sm from jiaoshi");<br /> mysql_query("set names 'GB2312'");<br /> $row=mysql_fetch_array($query);<br /> $count=$row['sm'];<br /> if(empty($offset))<br /> {$offset=0;}<br /> echo $offset;<br /> $query=mysql_query("select * from jiaoshi order by id asc limit $offset,$list_num") or die ("fail");<br /> mysql_query("set names 'GB2312'");<br /> while($row=mysql_fetch_array($query)){<br /> if(($n%2)!='0'){<br /> echo "<tr bgcolor=#ffffff>";}<br> else{<br> echo "<tr bgcolor=#E4E4E4>";<br> }<br> if($row['surplus']==0)<br> $ss="不可选";<br> else $ss="可选"; <br> echo"<br> <td height='22' class='STYLE1'> <div align='center'>".$row['id']."</div></td><br> <td height='22' class='STYLE1'> <div align='center'>".$row['subject']."</div></td> <div class="clear"></div>