I have a query bringing back rows from a database. And my PHP is generating pages and inserting this content. What I'm stuck on is this: I need one thing to happen if a certain field is '0' and another thing to happen if it's '1'.
So I'm trying to:
do {
etc. etc. etc.
if ('certain_field' = 0) { // restart this DO loop
} else {
etc. etc. etc.
}
// since the 'certain_field' == 1 write this as well.
} while (condition == true)
I've seen 'break' and 'exit' but how do I get the do loop to actually restart itself and grab the next row in the query without breaking out of the loop?