<?php include('conn.php'); $vid_id=$_GET['vid_id']; mysql_query('delete from testimonials where img_id="'.$vid_id.'"'); header('location:testimonials.php'); ?>