I've got a problem...Im currently working on a php website and i want to make it possible, that a user can delete stuff from my table just by giving the name of a "Team"(its about e sports) It does not give me any errors but it wont delete anything. So when the user types in lets say "a" and klicks on "Löschen" it should delete it.
here ist my code
if(isset($_POST['del'])){
$name = $_POST['name'];
$spiel = $_POST['spiel'];
$sql = "delete from thorstenschluet_ESports.AmateurTeam where '$name' = AmateurTeam.Name";
$db_erg = mysqli_query($conn, $sql);
}
and my table looks like this:
Name Spiel