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
WBOYOriginal
2016-09-29 09:33:031419browse

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>

As for the use, it can be:

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

Pass parameters to sort the result set

Statement:
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