darn still aint adding 1 to the view T_T
heres my current code:
PHP Code:
if($view==gal){
$fgall= $DB_site->query("SELECT gallery_index.gallery_views,gallery.gallery_id,gallery.image_id,gallery.image_name,gallery.image_url,gallery.image_des,gallery.image_views,gallery.image_rating,gallery.image_date FROM gallery,gallery_index WHERE gallery_index.gallery_id='$id' AND gallery.gallery_id='$id'");
while($gallery= $DB_site->fetch_array($fgall))
{
eval('$gallerybits .= "' . fetch_template('gallery_gal_lvl1') . '";');
$DB_site->query("UPDATE gallery_index SET gallery_views='$gallery[gallery_views]+1' WHERE gallery_id='$id'");
}
eval('$navbar .= "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('gallery_gal') . '");');
}