You are in: Gallery > {$rowAlbNa[‘name’]} > Image

“;
echo “

“;

$query2 = “SELECT id,alb_id FROM cg_images WHERE alb_id={$_GET[‘alb’]} and {$_GET[‘img’]} < Previous “;
}
else{
echo “< Previous"; } echo " - "; $query3 = "SELECT id,alb_id FROM cg_images WHERE alb_id={$_GET['alb']} and {$_GET['img']}>id ORDER BY id DESC LIMIT 1;”;
$result3 = mysql_query($query3);
if($row3 = mysql_fetch_array($result3, MYSQL_ASSOC))
{
echo “ Next > “;
}
else{
echo “Next >”;
}
echo “

“;

$query = “SELECT * FROM cg_images WHERE id={$_GET[‘img’]};”;
$result = mysql_query($query);

if($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
$imgrsz = getimagesize(“gallery/{$row[‘img_src1’]}”);
if ($imgrsz[0] > 550 or $imgrsz[1] > 550){
if ($imgrsz[0] > $imgrsz[1]) {
$percentage = (550 / $imgrsz[0]);
}
else {
$percentage = (550 / $imgrsz[1]);
}
$width = round($imgrsz[0] * $percentage);
$height = round($imgrsz[1] * $percentage);
}

echo”

click to enlarge

“;
echo “

{$row[‘name’]}

{$row[‘date’]}

“;
if ($row[‘descr’] != “”){echo “{$row[‘descr’]}”;}
}
}
?>