Hi EEmodulers,
I am working on my first module, and therefore dealing with the EE classes for the first time.
I am trying to output a table row heading that loops through a query and adds a cell to the row for each of the query results.
Here is what I have right now:
foreach($query->result as $row)
{
$assignment_cells .= $row['assignment_text'];
if ($i != $length)
{
$assignment_cells .= ', ';
}
}
... skip down ...
$DSP->tr().
$DSP->table_qcell('tableHeadingAlt',
array(
$LANG->line('student'),
$assignment_cells,
$LANG->line('grade_total')
)).
$DSP->tr_c();
Obviously this is not working, it just outputs all of the assignments into one cell.
How would I do this so that each assignment gets it own assignment?
Thanks! Zac
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.