Try like
$bdd->exec('DELETE FROM `' . $_SESSION['prenom'] . 'friendlist` WHERE name="' . mysql_real_escape_string($_POST['deletefriend']) . '"');
or like
It will work
$bdd->exec("DELETE FROM ". $_SESSION['prenom'] . "friendlist WHERE friendname="".$_POST["deletefriend']."'");
Delete From table_name …. will be the syntax for that
23
solved MySQL delete request not working [closed]