looped table within table
Posted: Tue Jul 02, 2002 12:47 am
ill try to explain as i go along:
hopefully this is self-explanatory or i drew it out well enough for everyone to see. im pretty sure my html is correct here, but my problem is all the php syntax within the loop. can someone help me out here by giving all the correct,error-free syntax. no matter how hard i try i can never get the errors worked out. i thought a 'clean' version would be easier to work with if someone feels like tackling it. thanks.
Code: Select all
<table width="100%" border="0" cellspacing="0" cellpadding="0"> // begin master table
<tr> // begin master table's only row
while ()
{ // begin while loop
<td> // begin master table column to be repeated by loop
<table width="25%" border="0" cellspacing="0" cellpadding="0"> // begin sub-table in master table column
<tr> // sub-table row 1
<td><div align="center">$image</div></td>
</tr> //end sub-table row 1
<tr> // sub-table row 2
<td><div align="center">$title</div></td>
</tr> // end sub-table row 2
<tr> // sub-table row 3
<td><div align="center">$make</div></td>
</tr> // end sub-table row 3
<tr> // sub-table row 4
<td><div align="center">$var</div></td>
</tr> // end sub-table row 4
</table> //end sub-table
</td> //end master table column
} //end loop
</tr> //end master table row
</table> //end master tablehopefully this is self-explanatory or i drew it out well enough for everyone to see. im pretty sure my html is correct here, but my problem is all the php syntax within the loop. can someone help me out here by giving all the correct,error-free syntax. no matter how hard i try i can never get the errors worked out. i thought a 'clean' version would be easier to work with if someone feels like tackling it. thanks.