Current Path : /webspace/www.alexishaulot.be/html/admin/ |
Current File : /webspace/www.alexishaulot.be/html/admin/del_photo.php |
<? require_once("../config.php"); $query = "select image,thumb from photo where id=".$_REQUEST['photo_id']; $res1 = mysql_query($query,$link); $rec = mysql_fetch_assoc($res1); unlink($rec['image']); unlink($rec['thumb']); $query = "delete from photo where id=".$_REQUEST['photo_id']; $res = mysql_query($query,$link); header("Location: index.php"); ?>