What does it mean to add orderby after & page = 1 in php? Is the database changing?

Source: Internet
Author: User
For a paging table, data is retrieved from the database, how to click the header for sorting for a paging table, data is retrieved from the database, and how to click the header for sorting

Reply content:

For a paging table, how to sort data from the database by clicking the header?

Orderby should be a sort parameter,
You can use some table plug-ins or ajax to retrieve data and re-display the data by clicking the sort header.

It must be a parameter in the url.

Order by xx

The usage can be:

1. pass to the backend and query the database. 2. use the front-end plug-in for data processing.

Sort the result set by passing parameters

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.