include"header.php"; ?>
$gallerylink = $gallery['gallery'];
$gallerytitle = $gallery['title'];
$gallerydate = $gallery['date'];
$galleryviews = $gallery['views'];
$gallerythumb = $gallery['thumb'];
$pitext = strtolower(str_replace('--', '_', str_replace(' ', '_', preg_replace('/[^\sA-Za-z0-9]+/', '', $gallerytitle))));
if ($id && $gallerytitle){
$ctext = strtolower(str_replace('--', '_', str_replace(' ', '_', preg_replace('/[^\sA-Za-z0-9]+/', '', $gcat))));
$clicks = $gallery['views'] + 1;
mysql_query("UPDATE galleries SET views = '".$clicks."' WHERE id = '".$id."'");
?>
Galleries / =$gallerytitle;?>
if($gallery['banner']){
echo "
|
$previd = $id - 1;
$sqll = mysql_query("SELECT * FROM galleries WHERE id='".$previd."'");
while($roww = mysql_fetch_array($sqll)){
$gtext = strtolower(str_replace('--', '_', str_replace(' ', '_', preg_replace('/[^\sA-Za-z0-9]+/', '', $roww['title']))));
if ($previd){
echo " << Previous ";
}
}
?> | Home | Similar |
$nextid = $id + 1;
$sql2 = mysql_query("SELECT * FROM galleries WHERE id='".$nextid."'");
while($roww = mysql_fetch_array($sql2)){
$gtext = strtolower(str_replace('--', '_', str_replace(' ', '_', preg_replace('/[^\sA-Za-z0-9]+/', '', $roww['title']))));
if ($nextid){
echo " Next >> ";
}
}
?>
|
![]() ![]() ![]() ![]() |