|
|
|
|
|
|
if (isset($id) and isset($subid)){
$current_query = "SELECT * FROM photo where id='".$id."' and subid='".$subid."' order by photoid asc";
$R=mysql_query($current_query, $sock);
$total_images = mysql_num_rows($R);
//$current_query = "SELECT * FROM photo where id='".$id."' and subid='".$subid."' and photoid >'".($cpage-1)*$photos_to_show."' order by photoid limit ".$photos_to_show;
if ($subid <> 1) $current_query = "SELECT * FROM photo where id='".$id."' and subid='".$subid."' order by year desc, photoid asc limit ".($cpage-1)*$photos_to_show.", ".$photos_to_show;
}else{echo "ID=$id and SUBID=$subid does not exist."; exit;}
$R=mysql_query($current_query, $sock);
$T=mysql_fetch_array($R);
?>
if ($cpage == "1") include ("intro.php");?> |
while (is_array($T)) { ?>
height= echo $thumb_size+$thumb_border+20; ?> bgcolor= echo $thumb_border_color; ?>>
| } else {
// Making thumbnails
echo " | ";
}?>
$T=mysql_fetch_array($R); if ($T[thumbnail]) { ?> height= echo $thumb_size+$thumb_border+20; ?> bgcolor= echo $thumb_border_color; ?>>
| } else {
// Making thumbnails
echo " | ";
}?>
$T=mysql_fetch_array($R); if ($T[thumbnail]) { ?> height= echo $thumb_size+$thumb_border+20; ?> bgcolor= echo $thumb_border_color; ?>>
| } else {
// Making thumbnails
echo " | ";
}?>
$T=mysql_fetch_array($R);
}
?>
|
|
|
|