Page information
$ pageize = 10; if (isset ($ _ get ['Page')) {$ Page = INTVAL ($ _ get ['Page']);} else {$ Page = 1;} $ sqlstr = mysql_Query ("SELECT * "$ allrow = mysql_num_rows ($ SQLSTR); if ($ allrow) {if ($ allrow <$ pagesize) {$ Page_count = 1;} // If the total record number is less than the number of points Pages = 1 Because I can display if IF ($ allrow% $ pagesize) {$ page_count = (int) 1;} else {$ page_count = $ allrow / $ pageSize;}} Else {$ PageSize = 0; // If the record is empty, the number of points is empty} $ Page_String = ''; if ($ Page == 1) {$ Page_String. = 'First Page | Previous |' } else {$ Page_String. = 'First Page | Previous |';} IF (($ Page == $ Page_count) || ($ Page_count == 0)) {$ Page_String. = 'Next Page | Last page ';} else {$ page_string. =' Next page | Last ";} if ($ allrow) {$ sqls =" select * from tolook where userid = 'ehxee' limited ". ($ PAGE-1) * $ PageSize. "$, $ ests = mysql_query ($ SQLS, $ Connstr); while ($ rows = mysql_fetch_array ($ r = $ rrows [" title "]; $ favor Down = $ rrows ["lookordown"]; $ looktime = $ rrows ["looktime"]; $ userip = $ rrows ["userip"]; echo "; echo" $ title "; echo" $ lookordown "; echo" $ looktime "; echo" $ userip "; echo";} if ($ title == "") {echo "Sorry! You don't have any consumption record";}}?>