How to synchronize multiple metadata, read how to synchronize multiple metadata, and call multiple metadata at a time, then, different processing will be performed "One by one" and "differentiated" in the same website, and the last "Same Time" will be performed on the resource updateorinsert. The update and insert data records received for each item are not the same! ========================================== Handling point "> <LINK calls multiple links at a time materials, then, "one by one" and "differentiate" in the same website will be used for different processing, and "Same Time" will be used for updating or inserting data. The update and insert data records received for each item are not the same! ======================================
Which of the following statements about loop + array?
1. obtain the information from the resource:
When db_query is used for looping, the information that the related bit needs to be updated is routed to the array.
Based on your needs, these resources can be presented using text, checkbox, or hidden. Of course, checkbox is the most common type.
For example, a large number of checkboxes are used in the processing of parts.
2. the modified information is stored back as an operation.
It must be in count (array) + loop + db_update:
The result of the root distinct count is rotated, and db_update is put in, so that the loop can complete the update operation of all resources.
Example:
========================================================== ==========
#### 1. update. php: retrieve the information using loop + array to update ........
# Call data here
$ Query = "select * from $ userstable where ...................
# Import loop to retrieve data one by one
$ I = 0;
While ($ I <$ num ):
...............
$ Id = mysql_result ($ result, $ I, "id ");
..................
............................
# Use The struct type to retrieve the required updated struct, and construct it into array ..........
Echo"Echo" ";
Echo" ";
$ I ++;
Endwhile;
========================================================== ====================
#### 2. activate. php: after the data is updated, the loop + array is used to save the data ...................
.......
For ($ I = 0; $ I <count ($ Cname); $ I ++ ){
$ Name = $ Cname [$ I];
$ Id = $ Cid [$ I];
$ Query = "update $ userstable set name = '$ name' where id =' $ ID '";
.............
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.