696 and $theid<800) $albumid=$theid; else $albumid=706; $base="/gallery3/albums/album-$albumid/cache/"; $baselg="/gallery3/albums/album-$albumid/lg/"; $query="select title, src, caption from ssp_images where aid='$albumid' order by id"; $result=doquery($query); //print_r($result); ?>
"; } else { $thumb.="
"; } $p++; } $thumb.="
\"$caption\"
"; if ($i%6==5) $thumb.="
\n\n"; if ($i%6 !=5 and $i==$l) $thumb.="
\n\n"; if ($i==0) { $classfirst="showfirst"; } else $classfirst="show"; $main.="
\"$caption\"
$caption
"; $t=$i+1; $r=$i-1; if ($i==0) $main.="
\"\"
"; elseif ($i==$l) $main.="
\"\"
"; else $main.="
\"\"
"; $main.="
$t of $tot
"; $main.="
\n"; $i++; } echo "
".$result[0][0]."
\n\n$thumb\n\n
"; echo "
$main
"; ?>