Lots of data to write to the database
For example if ($a = = 2) {
Skip this one.
}
Code should be how to write, know the eldest brother directly to the complete code, thank you
Reply to discussion (solution)
if ($a! = 2) {
Skip this one.
}
This data is not written to the database when $a=2, continue to the next
if ($a! = 2) {
Implement this article
}
Continue in circulation
if ($a! = 2) {
mysql_query (' insert INTO ... ');
}
If it's in the body of the loop, continue.
foreach ($xxx as $x) { if ($a = = 2) { continue;//) If this requirement is met, the following statement within this loop will no longer perform the start of the next loop } mysql_query (" Xxxxxxxxxxxxxxxxxxxxxxxxxxxxx ");}
foreach ($xxx as $x) { if ($a = = 2) { continue;//) If this requirement is met, the following statement within this loop will no longer perform the start of the next loop } mysql_query (" Xxxxxxxxxxxxxxxxxxxxxxxxxxxxx ");}
++
The code you want is as follows:
if ($a = = 2) {}else{ //A Heap of code}
The code you want is as follows:
if ($a = = 2) {}else{ //A Heap of code}
++
Blank