Hey,
Ok I'm setting up an image library and I need to ask something regarding the output of images.
At the moment I am using this:
<?
// generate and execute query
$query = "SELECT * FROM IMAGES";
$result = mysql_query($query) or die ("Error in query: $query. " .
mysql_error());
// if records present
if (mysql_num_rows($result) > 0)
{
// repeat rows
while($row = mysql_fetch_assoc($result))
{
?>
<img src="<? echo £row->url; ?>">
<?
} // end repeat
}
else
{
echo "Nothing found";
}
?>
Now, I would like to ouput more than one Image per line, but I'm not quite sure how to do this. Ideally, I would like three images per line, they are all 100*100 pixels so they will fit easily, just not sure how to tell PHP to do this??
Cheers,
Chris