When using a value inside SQL you do not use double quotes. You use single quotes:
$sql = "DELETE FROM medewerker_poster WHERE naam = '$gebruikersnaam'";
My helpful sig has gone because a mod below the administrator gave me an infraction - despite the administrator personally agreeing to it.
If you need any php tips or tricks you can PM me.