Parašė Jaunelis· 2009 Spa. 27 00:10:08
#3
rodo paveikslėli ???
Pasidariau:
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
$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 1");
echo "";
if (dbrows($uzklausa) != 0) {
while($data = dbarray($uzklausa)) {
echo "<center>
<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']."' border='0'></a><center>";
}
}
closeside();
?>
Jai kam reiks :)
Redagavo Jaunelis· 2009 Spa. 27 00:10:16