Php paging problems system prompts Undefinedvariable: php_self

Source: Internet
Author: User
The system prompts "Undefinedvariable: php_self" for the Undefinedvariable variable in php paging. the page displays the list normally. when you click "next page", the page number changes, however, the page content is displayed on the first page. The system prompts the Undefined variable Undefined & nbsp; variable: & nbsp; php_self & n php paging. the system prompts the Undefined variable: php_self.
This page is a page that can normally display the list. when you click "next page", the page number changes, but the page content is still the first page. The system prompts rows 72nd and 79 Undefined variables: php_self. how can I modify them?
 /* Error_reporting (E_ALL ^ E_NOTICE );*/
############## ############
Include "config. php ";
Include "header. php ";
?>



Project List




 
Subject No.

 
Topic Name
Instructor
Title
Number of persons available
Selection
Status
Details

$ 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 = "not available ";
Else $ ss = "optional ";
Echo"
". $ Row ['id']."
". $ Row ['subobject']."

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.