Having a loop problem… I’m creating a nested loop to show images from my database 2/ row. With this code I was able to generate 2 images per row but the same image is appearing twice then the next image is going to the next line and showing it twice again.
<!-- Table --> <div class="table"> <div style="margin-left:50px;" id="images"> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <?php while($rows=mysql_fetch_array($result)) { $link=$rows[company_logo]; $count=0; echo "<tr>"; while($count<=1){ echo "<td><img src=\\"upload/$link\\" width=\\"100px\\" height=\\"100px\\"/></td>"; $count++; } echo "</tr>"; } ?> </table> </div>
I know what’s wrong but don’t know how to solve it.
Thanks!