How to achieve more ?? Material synchronization

Source: Internet
Author: User
How many calls ?? Material, and then in the same ???? "One by one" and "points? E. is it different? Why? R 」?? Y material ?? Pdateorinsert. Every question ?? The update, insert ??? K is different! & Nbsp ;? Why? Which of the following statements about _ loop + SyntaxHighlighter. al ?? Material, and then in the same ???? "One by one" and "points? E. is it different? Why? R 」?? Y material? Update or insert. Every question ?? The update, insert ??? K is different! ======================================
? Why? In _____ loop + array

1 .? Y material? Yi harmonic salmon Y material:
Db_query? The same row looping? R, phase ?? Too many tasks? Pdate? Material communication? Input array.
According to the needs of each person ,? Some? Can text, checkbox, or hidden be used? Type? B is ?.? However, is checkbox the most common? Type.
For example ,? ? Why ?? A large number of checkboxes are used.
2. modified? Material Storage? I
Yes? In count (array) + loop + db_update:
Root ?? What about ount? Result? OK? Spin, put db_update? Go ,? Loop to complete all? Material update and storage? I.
? For example:
========================================================== ==========
#### 1. update. php (as the mainstream development language): Retrieve it using loop + array? To update ........


# In question ?? Call? Expected ?? Nbsp;
$ Query = "select * from $ userstable where ...................

#? In the loop, retrieve them one by one? Raw materials
$ I = 0;
While ($ I <$ num ):
...............
$ Id = MySQL (the best combination with PHP) _ result ($ result, $ I, "id ");
..................
............................
# Take ?? Is the type of required? Updated? Too many ?? To array ..........
Echo"Echo" ";
Echo" ";

$ I ++;
Endwhile;


========================================================== ====================
#### 2. activate. php (as the mainstream development language ):? After the material is updated, what is transparent? Loop + array to save ...................

.......
For ($ I = 0; $ I <count ($ Cname); $ I ++ ){
$ Name = $ Cname [$ I];
$ Id = $ Cid [$ I];

$ Query = "update $ userstable set name = $ name where id = $ id ";
.............

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.