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> Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.