I am writing a loop that is building a table. With a mysql_num_row, I get how many persons (18), and I want tables with 6 persons max (so: $Peoples = (mysql_num_row($SQL_statement) /6;).
In the loop, I increment $Count: $Count = $Count + 1;
When I write:
Do{
[code]
} while($Count == $Peoples);
The condition is not working: after 1 loop it exits from the loop. I printed $Count wich is 1, and $Peoples is 3.
Is there something to do with this? Thanks!