require 'includes/header.php'?> if($_SERVER['REQUEST_METHOD'] === 'POST') { if(!empty($_FILES['image']['name'])) { $image = photo_upload('image','site_manager'); if($image['status']) { $con->query("INSERT INTO `logos` (`id`, `timestamp`, `image`) VALUES (NULL, CURRENT_TIMESTAMP, '".$image['file_name']."')"); echo ''; } else { echo ''; } } } if($_GET['action'] == 'del'){ $con->query("DELETE FROM logos where id ='".$_GET['id']."' "); echo ''; } ?>