if($view==gal){ $fgall= $DB_site("SELECT gallery_index.gallery_views,gallery.gallery_id,gallery.image_id,gallery.image_url,gallery.image_des,gallery.image_views,gallery.image_rating,gallery.image_date FROM gallery,gallery_index WHERE gallery_index.gallery_views='$id'"); $gallery= $DB_site->fetch_array($fgall) $views=++$gallery[gallery_index]; $tviews= $views; $DB_site->query("UPDATE gallery_index SET gallery_views='$tviews' WHERE gallery_id='$id'"); eval('$navbar .= "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('gallery_gal') . '");'); } ?>
$views=++$gallery[gallery_index];