Hi,
I've got a script that pulls some recordsets from a mysql db. The results get put into an array, then I have a loop that outputs the html table containing the array variables one result per html table row.
My question is how to I get two results per html row? Example:
<TABLE CELLSPACING="2" CELLPADDING="2" BORDER="0">
<?php
if (mysql_num_rows($filelist) > 0) {
while ($f = mysql_fetch_array($filelist)) {
?>
<TR>
<TD><?=$f["prod_name"]?></TD> (This should be prod_name from first db row)
<TD><?=$f["prod_name"]?></TD>(This should be prod_name from second db row)
</TR>
<?php
}
}
?>
</TABLE>
As each page will be LIMITed to 4 results I need the above html row to loop and be populated with the third and fourth db row's particular value.
Thanks,
Ian Lalonde