openside("Najnowsze fotki"); $result = dbquery("SELECT * FROM ".$db_prefix."photos WHERE album_id!='album 1' AND album_id!='4' ORDER BY photo_id DESC LIMIT 4"); if (dbrows($result) != 0) { while($data = dbarray($result)) { $lastphotodir = PHOTOS.(!@ini_get("safe_mode") ? "album_".$data['album_id']."/" : ""); $itemsubject = trimlink($data['photo_id'], 23); echo " ".$data[ "; } } else { echo "Brak fotek na stronie"; } closeside();