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 clicking modify, all the values of the changed data will be input to the form in the same IFRAME. after the user completes the modification, click confirm to modify and update the database. I do not understand what I have said. may I ask? how to implement it? ------ Solution ------------------ This is not the general way to read records from the database to the form and modify records
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}