Welcome Guest, Not a member yet? Register   Sign In
Repeating Tasks Without Repeating Projects
#5

[eluser]jshultz[/eluser]
that's exactly what I ended up doing and it worked. thanks. Smile

Here's the code thanks to ignitedcoding on the IRC channel:

Code:
<?php $currentProjectID = NULL; ?>        
<?php foreach ($projectPlusTasks as $row): ?>
        <?php if ( $currentProjectID != $row->projectid ): ?>
        <tr>
            <td>
                <strong>Project:</strong>
                &lt;?= $row->projectid?&gt;
            </td>
            <td>
                &lt;?= $row->project_name?&gt;
            </td>
            <td>
                &lt;?= $row->p_due_date?&gt;
            </td>
            <td>
            </td>
        </tr>
        &lt;?php endif;?&gt;
        <tr>
            <td>
                <strong>Task:</strong>
                &lt;?= $row->taskid?&gt;
            </td>
            <td>
                &lt;?= $row->task?&gt;
            </td>
            <td>
                &lt;?= $row->t_due_date?&gt;
            </td>
            <td>
            </td>
        </tr>
        &lt;?php $currentProjectID = $row->projectid; ?&gt;
        &lt;?php endforeach; ?&gt;


Messages In This Thread
Repeating Tasks Without Repeating Projects - by El Forum - 09-08-2009, 12:35 PM
Repeating Tasks Without Repeating Projects - by El Forum - 09-08-2009, 12:47 PM
Repeating Tasks Without Repeating Projects - by El Forum - 09-08-2009, 12:55 PM
Repeating Tasks Without Repeating Projects - by El Forum - 09-08-2009, 01:10 PM
Repeating Tasks Without Repeating Projects - by El Forum - 09-08-2009, 01:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB