sstangle73 Posted October 7, 2007 Share Posted October 7, 2007 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 More sharing options...
pocobueno1388 Posted October 7, 2007 Share Posted October 7, 2007 Check this post out http://www.phpfreaks.com/forums/index.php/topic,95426.0.html Link to comment https://forums.phpfreaks.com/topic/72182-solved-5per-line/#findComment-364014 Share on other sites More sharing options...
sstangle73 Posted October 7, 2007 Author Share Posted October 7, 2007 works thanks had to mod it a little but Link to comment https://forums.phpfreaks.com/topic/72182-solved-5per-line/#findComment-364018 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.