PHP头条
热点:

php分页有关问题系统提示未定义变量Undefinedvariable:php_self


php分页问题 系统提示未定义变量Undefined variable: php_self
这个页面是一个可以正常显示列表的页面,单击“下一页”时,页数会发生变化,但是页面内容还是显示的第一页。系统提示第72和79行未定义变量Undefined variable: php_self 我应该怎样修改下? 

/*error_reporting(E_ALL ^ E_NOTICE);*/
//######################课题列表##########################
  include "config.php";
  include "header.php";
?> 



课题列表




   
     课题编号

 
   课题名称    
   指导教师
   职称    
   可选人数    
  选题情况    
  状态    
  详细资料    
  
  $n=0; 
  $query=mysql_query("select count(*) as sm from jiaoshi");
  mysql_query("set names 'GB2312'");
  $row=mysql_fetch_array($query);
  $count=$row['sm'];
    if(empty($offset))
              {$offset=0;}
echo  $offset;
   $query=mysql_query("select * from jiaoshi order by id asc limit $offset,$list_num") or die ("fail");
   mysql_query("set names 'GB2312'");
   while($row=mysql_fetch_array($query)){
        if(($n%2)!='0'){
    echo "";}
  else{
  echo "";
  }
if($row['surplus']==0)
     $ss="不可选";
else $ss="可选"; 
     echo"
 ".$row['id']."
 ".$row['subject']."

www.phpzy.comtrue/phprm/6865.htmlTechArticlephp分页有关问题系统提示未定义变量Undefinedvariable:php_self php分页问题 系统提示未定义变量Undefined variable: php_self 这个页面是一个可以正常显示列表的页面,单击“下一页”时,页数会发...

相关文章

相关频道:

PHP之友评论

今天推荐