Looping through left joined tables |
[eluser]jshultz[/eluser]
I've got a small problem: I've got a model that's doing a left join on two tables. A projects table and a tasks table. It's supposed to echo out the project, then echo out all the tasks associated with that project. Instead,it's repeating the project name for each task row. Here's the code: http://stikked.com/view/25802955 do you think a second foreach loop would work? inside the first foreach loop? VIEW: Code: <?php $currentProjectID = NULL; ?> Code: /* Get all Projects and Tasks by Project ID */ |
Messages In This Thread |
Looping through left joined tables - by El Forum - 10-04-2009, 01:53 PM
Looping through left joined tables - by El Forum - 10-04-2009, 09:20 PM
Looping through left joined tables - by El Forum - 10-05-2009, 08:10 AM
Looping through left joined tables - by El Forum - 10-05-2009, 08:27 AM
Looping through left joined tables - by El Forum - 10-05-2009, 09:56 AM
|