Call out multiple pieces of data at once, then perform different processing "one by one" and "separately" on the same web page, and finally update or insert the database "at the same time". The update and insert data received for each piece of information are not the same! ============================
The main point of processing is _____ loop + array
1. From the database Call out data:
While db_query is looping, all the data that needs to be updated in the relevant fields are included in the array.
According to everyone's needs, these data can be presented in various forms such as text, checkbox, or hidden. Of course, checkbox is the most common type.
For example, mail processing web pages use checkbox extensively.
2. Modified data restore operation
The key point is count(array) + loop + db_update:
Loop based on the result of count, put db_update in, and let the loop complete the update and save operation of all data.
An example is as follows:
============================================== =======
####1.update.php: Use loop+array to retrieve data for update...