I have the following in which I am trying to make separate HTML tables after each group:
$query = "SELECT * FROM NonBillableTime WHERE TimeIn LIKE '$MondayP2%' ORDER BY CreatedUser ASC";
$members = mysql_query($query) or die($query."<br/><br/>".mysql_error());
while ($row = mysql_fetch_assoc($members)) {
Example HTML Table 1 would return everything with CreatedUser number 5 Then the table would end and a new table would start and return everything with the CreatedUser number 6.
I am facing two issues :-
- I don't know ahead how many users I have since it changes.
- It needs to execute from
while ($row = mysql_fetch_assoc($members)) {
since I am doing other calculations on the fly
Yes I want to use MYSQL and am aware of adding injection prevention.