Nested Repeats
Posted: Wed Mar 29, 2006 4:06 pm
Hello again! 
I'm having a certain issue that I'm not sure how to get around. This is the piece of code I'm working with:
I'm using dreamweaver due to my lack of PHP Knowledge without it. As you see, I already have a repeat region. Do you see where it says "<!--Start Repeat-->"? That's another repeat row I plan to do, but it won't allow me to. How can I get around it to display the rest of the records?
I'm having a certain issue that I'm not sure how to get around. This is the piece of code I'm working with:
Code: Select all
<?php do { ?>
<table cellspacing="0" cellpadding="2">
<tr>
<td align="center"><img src="<?php echo $images_dir ?>/tb_<?php echo $row_callitems['itemname']; ?>" /><br />
<?php echo $row_callitems['itemname']; ?></td>
<td valign="top"><table cellspacing="0" cellpadding="2">
<tr>
<td>Size</td>
<td>Paper</td>
<td>Quantity</td>
<td>Unit Price </td>
<td>Subtotal</td>
</tr>
<!--Start Repeat -->
<tr>
<td><?php echo $row_callitem_size['size']; ?></td>
<td><?php echo $row_callitem_size['paper']; ?></td>
<td><?php echo $row_callitem_size['quantity'];?></td>
<td><?php ?></td>
<td><?php ?></td>
</tr>
<!--End Repeat -->
</table></td>
</tr>
</table>
<?php } while ($row_callitems = mysql_fetch_assoc($callitems)); ?>