<?php
require('db.php');
$itemid=$_REQUEST['itemid'];
$query = "DELETE FROM lfmstable WHERE itemid=$itemid";
$result = mysqli_query($con,$query) or die ( mysqli_connect_error());
header("Location: tables.php");
?>
I'm new to php and I can't seem to make the "Delete" button from my table work. I don't know what is the problem.