How to group data in PHP inside the while loop
- by christian
I query in a database and loop the result using while and heres the sample data retrieve:
echo $db->f("FirstName")."===".$db->f("Question")."=".$db->f("Answer")."<br>";
Michael===Q2=allergy
Michael===Q2=Hives
Michael===Q6=A lot
Michael===Q8_A=Daktacort
Michael===Q1=Itch
Michael===Q5=Smoke
Michael===Q8_A=Diprogenta…