opendbconnection(); # open database conenction $dbObj->setsql("SELECT name,description,file FROM assets WHERE status=1 AND parentID=92 ORDER BY name ASC"); $dbObj->selectquery(); for($z=0;$zresult);$z++) { $imgName[$y]=$dbObj->result[$z][0]; $imgDesc[$y]=$dbObj->result[$z][1]; $file[$y]=$dbObj->result[$z][2]; if(isset($imgDesc[$y]) && $imgDesc[$y]!=""){ $description=$imgDesc[$y]; } else { $description=$imgName[$y]; } list($width, $height, $type, $attr)=getimagesize($basedir.$file[$y]); echo " "; } ?>


$description
<< ScrollScroll >>