Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Paskutines foto PANELE

Parašė ramon· 2007 Lap. 14 22:11:22
#11

Stai imk [jej klaidu bus , sorry] :

openside ("Pastikutinios 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 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/"."/".$data['photo_thumb1']."' border='0'></a><center>";
}


}
closeside ();