I wouldn't, infact if you only want to add 1 view, i'd use:
PHP Code:
$fgall= $DB_site->query("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);
$DB_site->query("UPDATE gallery_index SET gallery_views='gallery_views+1' WHERE gallery_id='$id'");
eval('$navbar .= "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('gallery_gal') . '");');
}
?>