Code: Select all
<div id="poze">
<?php
$img_url = "http://fiestukis.site40.net/";
$result = mysql_query("SELECT url FROM images where sid='$sid' Order by ID DESC limit 7 ");
while($row = mysql_fetch_assoc($result))
{
echo '<img src="'.$img_url.$row['url'].'" border="0" width="200" height="250" />';
}
$num_rows = mysql_num_rows($result);
echo "$num_rows Rows\n";
?>
</div>