Heeey all,
So I'm building a blog feed that echo's 9 images with a title above each image. (3 on each row) The images and the title come from a database and I'm using while and mysql_fetch_ass oc to show it. However, with my code it shows all the title and images on 1 vertical colomun... How can i fix this?
This is how it looks like right now: http://i48.tinypic.com/2utssc0.png
This is how my code looks like for showing the images and title:
Thank youuu!
So I'm building a blog feed that echo's 9 images with a title above each image. (3 on each row) The images and the title come from a database and I'm using while and mysql_fetch_ass oc to show it. However, with my code it shows all the title and images on 1 vertical colomun... How can i fix this?
This is how it looks like right now: http://i48.tinypic.com/2utssc0.png
This is how my code looks like for showing the images and title:
Code:
<?php
mysql_connect('localhost','root','') or die(mysql_error());
mysql_select_db ('databaseimage') or die(mysql_error());
$image = mysql_query("SELECT * FROM store ORDER BY id DESC");
while ($row = mysql_fetch_assoc($image))
{
echo "<a class=\"blog_widget_02\" href=\"blog.php?id=$row[id]\"> <br/>".$row['name']." <br/><img src=\"image.php?id=$row[id]\"/ height=\"210\" width=\"302\"><br/></a>";
}
?>
Thank youuu!
Comment