I want to delete a table-column with a certain title. What is wrong with this query? If I add the delete-URL (with the requested title; ...?name=) in my webbrowser, I get the last echo (Error-message)
    <?php 
    //Getting Id
    $name = $_GET['name'];
    //Importing database
    require_once('dbConnect.php');
    //Creating sql query
    $sql = "ALTER TALBE tische DROP `$name`";  
    //Deleting record in database 
    if(mysqli_query($con,$sql)){ 
    echo 'Element erfolgreich aus Abrechnung entfernt';
        }else{
            echo 'Konnte Element nicht aus Abrechnung entfernen';
    }
    //closing connection 
    mysqli_close($con);
 
    