Could you help me identify what's wrong with this code?
<?php
include ("conexao.php");?>
<?php
$id = isset ($_POST['id']) ? $_POST['id']:'';
$sql= "DELETE FROM 'guaxinim' WHERE 'guaxinim'.'id'=".$id;
$result = mysqli_query($conn, $sql);
if($result)
die ("O registro foi excluído.");
else
echo "Infelizmente não foi possível excluir.";
header('Location: cadastros.php');
?>
As the page loads when I take the "header" it appears that it worked and does not look like an error, but when I check the database the data is still there.