Parašė alvydas54· 2011 Geg. 19 00:05:35
openside ("Naujausios nuotraukos");
$uzklausa = dbquery("SELECT panel_name FROM ".$db_prefix."panels WHERE panel_filename = 'latest_images_panel'");
if (dbrows($uzklausa) != 0) {
$data = dbarray($uzklausa);
$panel_name = $data['panel_name'];
}
$uzklausa = dbquery("SELECT * FROM ".$db_prefix."photos ORDER BY photo_id DESC LIMIT 3");
echo "";
if (dbrows($uzklausa) != 0) {
while($data = dbarray($uzklausa)) {
echo "
<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' title='".$data['photo_title']."'class='gallery'>
<img src='".BASEDIR."images/photoalbum/album_".$data['album_id']."/".$data['photo_thumb1']."' style='margin:20px' align='left'></a>";
}
}
closeside();
?>