I am using a While loop to dispay data stored in a mysql database I would like all the data to be displayed on a single line instead of being displying below the prevoius.
while($row = mysql_fetch_assoc($popular)){
echo"<figure>
<div align=\"center\">
<a href=\"\"><img src=\"images/" . $row['product_img'] . ".png\" alt=\"" . $row['alt_desc'] . "\"></a>
<figcaption><p>" . $row['product_name'] . "<br>
<b>£" . $row['product_price'] . "</b>
</p></div></figure>";
}
I think it is something to do with the figure element as when I only looped this line:
<a href=\"\"><img src=\"images/" . $row['product_img'] . ".png\" alt=\"" . $row['alt_desc'] . "\"></a>
The images would be disped next to each other not not listed down the page.
Does anyone how any ideas how I could solve this problem.