How to implement php in the query list, click the query result to jump to query the details of the corresponding record, as shown in the figure

Source: Internet
Author: User
In the query list, how does php perform a query by clicking the query result to jump to the details of the corresponding record? ------ solution ------------------ isn't it a connection to a program to pass a unique identification representation? ------ Solution -------------------- are there any query results? Primary key is unique ------ solution ------------------ set your primary key to & nbsp; id php how to achieve in the query list, click the query result to jump to query the details of the corresponding record,

------ Solution --------------------
Isn't it connecting to a program to pass a unique identification representation?
------ Solution --------------------
Are there any query results? The primary key is unique.
------ Solution --------------------
Set your primary key to id
Then href = "datum_derai.php? Id = "
Can I wear more IDs?
------ Solution --------------------
It is very basic to pass the value. The landlord should read the book. Use $ _ GET ['id'] to obtain datum_derai.php.
------ Solution --------------------
This problem is implemented in many ways. get is often used to pass values. of course, if you want to display it on this page, you can also use ajax to perform partial refresh.

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.