Hey guys, wondering if you can help me out, i can't for the life of me figure out why this is displaying strangely.. it's doing it in every browser, at first i got rid of it by sorting the recordset in descending order, but now i'm getting gaps popping up all over the shop!
i'll attach a picture of what's happening, and put the code below:
<ul>
<?php
$result=mysql_query("SELECT s_id, s_name, s_price, s_imagedir FROM tbl_stock inner join tbl_cat on s_cat=c_id where s_cat=". $_GET['cat'] . " Order by s_id limit 0,5");
while($row = mysql_fetch_array($result))
{ ?>
<li class="prod">
<p align="center">
<?php echo "<a href='shop.php?item=" . $row['s_id'] ."'>"; ?>
<img src="images/<?php echo $row['s_imagedir'] ;?>/1g.jpg" border="0" /></a></p>
<span class="ptext"><?php echo $row['s_name'] ;?></span><br />
<span class="pprice">£<?php echo $row['s_price'] ;?></span>
</li>
<?php } ?>
</ul>
thanks in advance
P