ruạṛ
<?php session_start(); require_once $_SERVER['DOCUMENT_ROOT'].'/admin/scripts-includes/universal.php'; $connID = connect_to_db(); $gal_id = is_numeric_id($_POST['gallery']); $title = clean_plain_data($_POST['title']); $description = clean_plain_data($_POST['description']); //update if(!$update = mysql_query("update gallery_data set gallery_title = '$title', gallery_description = '$description' where gallery_id = '$gal_id'") ) { getout('There was an error updating the gallery.'); //.mysql_error() exit; } $message = 'Gallery updated successfully.'; getout($message); exit; ?>
cải xoăn