openside('Galerie'); $result = dbquery("SELECT * FROM ".$db_prefix."photos ORDER BY photo_id DESC LIMIT 0,1"); if (dbrows($result) != 0) { while($data = dbarray($result)) { $itemsubject = trimlink($data['photo_id'], 23); $itemdescription = trimlink($data['photo_title'], 23); echo "
Zdjiêcie z pierwszej galeri
".$data['photo_title']."
\n"; } } $result3 = dbquery("SELECT * FROM ".$db_prefix."photos3 ORDER BY photo_id DESC LIMIT 0,1"); if (dbrows($result3) != 0) { while($data3 = dbarray($result3)) { $itemsubject = trimlink($data3['photo_id'], 23); $itemdescription = trimlink($data3['photo_title'], 23); echo "
Zdjiêcie z drugiej galeri
".$data3['photo_title']."
\n"; } } $result2 = dbquery("SELECT * FROM ".$db_prefix."photos2 ORDER BY photo_id DESC LIMIT 0,1"); if (dbrows($result2) != 0) { while($data2 = dbarray($result2)) { $itemsubject = trimlink($data2['photo_id'], 23); $itemdescription = trimlink($data2['photo_title'], 23); echo "
Zdjiêcie z trzeciej galeri
".$data2['photo_title']."
\n"; } } $result4 = dbquery("SELECT * FROM ".$db_prefix."photos4 ORDER BY photo_id DESC LIMIT 0,1"); if (dbrows($result2) != 0) { while($data4 = dbarray($result4)) { $itemsubject = trimlink($data4['photo_id'], 23); $itemdescription = trimlink($data4['photo_title'], 23); echo "
Zdjiêcie z czwartej galeri
".$data4['photo_title']."
\n"; } } closeside();