</tr> after 5 results.
Posted: Fri Dec 23, 2005 2:04 am
Right, loops are starting to tick me off ... probably because it's like only 8am. But how do I get it to show 5 results then show another 5 below and so on?
I'm using this as my query thing -->
Where abouts would I stick the loop information if I want my result sto show like this:
I'm using this as my query thing -->
Code: Select all
<?php
$sql = "SELECT * FROM members";
$result = mysql_query($sql, $conn) or die(mysql_error());
while($r = mysql_fetch_array($result)){
}
?>Code: Select all
<table>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>