Thanks for the reply but I've been using mysql_fetch_row unsuccessfully. If there's more than one project assigned to a task, then the project is listed again, which I do not want. This is a simplified version of my code:
for ($count = 1; $row = mysql_fetch_row ($conn1->getResult()); $count++) {
print "$row[0]<br>";
print " $row[1]<br><br>";
}
With that, all I get is a project name and under it, only one task. If there are other tasks assigned to the project, it gets written again. Such as:
Project 1
Task 1
Project 1
Task 2
Project 1
Task 3
Project 2
Task 1
Project 1
Task 4
What I want is this:
Project 1
Task 1
Task 2
Task 3
Task 4
Project 2
Task 1
Any thoughts? Thanks.