do while's
Posted: Tue Jul 09, 2002 2:20 pm
I have a huge table that takes data from for different mysql tables and i want it to keep printing out the data while there is data in the 4 tables (the 4 tables will all have the exact same number of rows)
I assumed i could get it to print the info from all the tables while there was info in one, but then it only prints the data from that one table, and the data from the other tables just repeats the first row.
now i want it to have multiple operators, but by using the "+" i was getting an operand error how should i code that?
should i do it like this:
I assumed i could get it to print the info from all the tables while there was info in one, but then it only prints the data from that one table, and the data from the other tables just repeats the first row.
Code: Select all
while ($row_generalInfo = mysql_fetch_assoc($generalInfo));should i do it like this:
Code: Select all
while ($row_generalInfo = mysql_fetch_assoc($generalInfo) || $row_curriculum = mysql_fetch_assoc($curriculum) || $row_products = mysql_fetch_assoc($products)); [/cdoe]
or should i use the word AND, or is there a way to do it with the "+" sign?