This article mainly for you in detail the PHP paging query simple implementation code, with a certain reference value, interested in small partners can refer to
About PHP, recently learned a lot, the teacher told us that now learning is the core of PHP, so I pay more attention to a bit, but also more practice several times, relatively speaking, it is easy to understand, it is not just beginning to learn the time so difficult, summed up is the feeling, mentality is the most important, At first, it is the mentality of the problem, considering all aspects of the problem, not quiet heart, and has not sat down for many years of practical study, always feel that they can not sit, after a period of time to rest, including the new Year at home for a period of time, after the return of the mentality has a great change, the sense of learning is not so Instead, it feels like a few years ago, when I met math problems, I wanted to conquer the general.
There's a lot of whining, haha. This morning the main study is paged query: If the data is more, display on a page will look at a lot of, and look will feel very tired at this time we use the page, the page has been written before, it seems clearer, today learned is paged query, relatively simple, is on the basis of the page to add a query conditions, This is the Chinastates table:
The main use is the first three columns, that is, the region code, region name and the parent code, paging query to be aware of the time to get the element is get, when we paged query will see the title bar display
If using post to get will be more troublesome, then need to change in the new page, the parentheses in the third condition to write, in the code identification, there are comments, the results are also displayed in the uploaded image, the query is "medium", and then see the second page, there is no problem
<body>
The above is the whole content of this article, I hope that everyone's study has helped.