Jump to content

[SOLVED] 5per line


sstangle73

Recommended Posts

i want to show 5 per line and on the 6th on go to the next line. how i have it now will only show 5

 

<table>
<tr>
<?php
$query5="SELECT * FROM image WHERE ID = '$ID' LIMIT 5"; 
$result5=mysql_query($query5); 
while($array5=mysql_fetch_assoc($result5)){
echo "<td>";
echo "<table>";
echo "<tr>";
echo "<td>";
echo "<img src=" . $array5[url] . " width=100px height=100px>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>";
echo "<center><b>" . $array5[TITLE] . "</b></center>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</td>";
}
?>
</tr>

</table>

Link to comment
https://forums.phpfreaks.com/topic/72182-solved-5per-line/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.