hi i display images from database, i want that there should be at most 4 photos in each row,when the number photos exceeds 4, it should displays the remaining images in next rows, the code i have written displays all images in the same row, i don't know how to deal with it. i used while loop for displaying images.
here is the code
<table width="86" border="0" align="center">
<tr>
<?php
while($show_std=mysql_fetch_assoc($get_stds)){?>
<td class="std_success_td"><img class="stdpic_success" src="<?php echo "uploads/".$show_std['std_pic'];?>"/></td>
<?php }?>
</tr>
</table>