Read records from the database to the form and modify records

Source: Internet
Author: User
Read the record from the database to the form and modify the record. read one or N records from the database, use the while loop to get all the values in the array, and there will be a modified button after each record, after you click modify, all the values of the modified data are input to the form in the same IFRAME. after the user completes the modification, click confirm to modify, and update the database. The record is not read from the database to the form and modified. record
Read one or N records from the database, use the while loop to output all values in the array, and a modified button will be followed by each record,
After you click modify, enter all the values of the modified data into the form in the same IFRAME. after the user completes the modification, click OK to modify and update the database.
I don't know what I'm talking about. how can I implement it?

------ Solution --------------------
Isn't this the most common feature of the general website background?
Just download one and check it out.
PHP code
While (/* The loop read here */) {echo $ row ['title']. "-edit ". "delete"; // edit. use a swich in php to determine whether the obtained action is edit or del, and then set the php code for the two cases respectively}

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.