hey guys,
now this one's gotta be easy, i just can't figure it out off the top of my head! i've got a result set with 6 records which i'm trying to lay into a 2x3 table. now i'd have thought it'd be as easy as starting a loop, displaying the first record, then moving to the next record, displaying that, then continuing the loop.
when i try that however i just get every other record displayed in both sides of the table. here's my code if you could possibly tell me where it is i'm going wrong!
<? while($row = mysql_fetch_array($result))
{
?>
<tr>
<td width="550"><? echo $row['c_field1']; ?> - <i><? echo $row['c_field2']; ?></i></td>
<? mysql_fetch_row($result); ?>
<td width="550"><? echo $row['c_field1']; ?> - <? echo $row['c_field2']; ?></td>
</tr>
<tr>
<td colspan="2"><hr /></td></tr>
<? } ?>
many thanks in advance
P