php - Delete not deleting the selected post but its deleting the recently(newels) added post -
my update.php file: <?php ob_start(); session_start(); //declare basic variables $servername = "localhost"; $username = "bilal"; $password = "super"; $dbname = "coursework"; //create connection $link = mysqli_connect($servername, $username, $password, $dbname); //check connection if($link->connect_error){ die ("connection failed: " . $link->connect_error); } //security purpose, handiling escape string // $crested_by = $_post ['created_by']; $title = $_post['title']; $catagory = $_post['catagory']; $contact = $_post['contact']; $comment = $_post ['description']; $ses = $_session['email']; $date = date('y-m-d'); $availability = $_post ['availability']; $price = $_post ['price']; $id = $_post['wow']; // $created_by_id = $_session['created_by_id']; // $username = $_session['firstname']; if (isset...