For a good php Tutorial, we should not only deeply rooted in the hearts of the people, but also give readers a deep understanding of the source code, but we will never give it completely to prevent plagiarism. our brain has no knowledge of transcription, this is not worth the candle, in the attitude of being responsible for Everbright php fans
For a good php Tutorial, we should not only deeply rooted in the hearts of the people, but also give readers a deep understanding of the source code, but we will never give it completely to prevent plagiarism. our brain has no knowledge of transcription, this is not worth the candle. in the spirit of being responsible for Everbright php fans,
See the source code below, without comments. if there is no solution, you can query the php Manual.
Include_once 'Conn/conn. php ';
If ($ page = ""){
$ Page = 1;
}
If ($ lijl = ""){
$ Lijl = 0;
}
?>
}
}
?>
Name |
No. |
Phone Number |
Address |
If ($ page ){$ Page_size = 2;$ Query = "select count (*) as total from blog_insert where id ";$ Result = mysql_query ($ query );$ Massage_count = mysql_result ($ result, 0, "total ");$ Page_count = ceil ($ massage_count/$ page_size );$ Offset = ($ page-1) * $ page_size;$ Query = "select * from blog_insert where id order by id desc limit $ offset, $ page_size ";$ Result = mysql_query ($ query );While ($ myrow = @ mysql_fetch_array ($ result )){?>
|
|
|
|
Page Echo $ page;?> / Page record: Entries
Paging: If ($ page = 1 ){ Echo "homepage "; Echo "previous page "; } If ($ page <$ page_count ){ Echo "next page "; Echo "last page "; } ?>
|