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

Source: Internet
Author: User

Reply to discussion (solution)

How to Realize click "View Details" to enter the detailed interface of this record

Is it just connecting a program to pass a unique identifying representation?

Is it just connecting a program to pass a unique identifying representation?


The query results are deposited in the established Is there a unique identifier for
in

Not in the query results? The primary key is the only

Is it the connection of a program to pass a unique identifying representation?


Not in the query results? The primary key is the only


Set your primary key to ID
then href= "datum_derai.php?id="!--? php echo $row [' id ']?--"
can Does the ID wear more?

Set your primary key as ID
then href= "datum_derai.php?id="!--? php echo $row [' ID '] ?--> "
Can't you put the ID on more?


very basic value, the landlord should look at the book. Datum_derai.php to get it with $_get[' id ').

This problem is implemented in many ways, often using get pass value, of course, if you want to display in this page can also use AJAX-related, local refresh

  • ? Yes, but how do you know if the clicked is a specific record in the query result? makes sense, I'll try

    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.