<?php
include "../../f_db.php";
dbconnect();
if (isset($_POST['submit'])) {
$upd = "UPDATE ras_gallery_photo SET photo_title='".str_replace('\\"','',$_POST['photo_title'])."', photo_desc='".str_replace('\\"','',$_POST['photo_desc'])."' WHERE photo_id=".$_POST['photo_id'];
$update = qupdate($upd);
header("Location: index.php?gal=".$_POST['gal_id']);
}
?>