Home > Backend Development > PHP Tutorial > What does it mean to add orderby after &page=1 in php? Does the database need to be changed?

What does it mean to add orderby after &page=1 in php? Does the database need to be changed?

WBOY
Release: 2016-09-29 09:33:03
Original
1409 people have browsed it

For a paginated table, the data is taken out from the database, how to sort by clicking on the header

Reply content:

For a paginated table, the data is taken out from the database, how to sort by clicking on the header

orderby should be a sorting parameter,
click on the header to sort, you can use some table plug-ins, or ajax to get the data and display it again

Since it’s on the url, it must be a parameter.

<code>orderby
根据xx排序
</code>
Copy after login

As for the use, it can be:

<code>1.传递至后端,查询数据库使用
2.前端插件做数据处理使用</code>
Copy after login

Pass parameters to sort the result set

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template