How to print database results into two or more columns? (using html) 😕
Hi,
Should be fairly simple....
Try this:
<table border = 1><tr> <? while($row = mysql_fetch_array($result)){ if($i == 2){ echo "</tr>/n<tr>"; $i = 0; } echo "<td>" . $row['YOUR TABLE FIELD NAME'] . "</td>"; $i++; } ?> </tr></table>
HTH Steve