<tr>
            <th>TH1</th>
            <th>TH2</th>
            <th>TH3</th>
            <?php
                if($account == 'admin' || $permission == 'deleting-rows')
                {
                    echo "<th><button onclick='delete_all(".$_GET['id'].")'>DELETE</button></th></tr>";
                }
            ?>
        </tr>
function delete_all(nr)
{
    if(confirm("Do you want to delete all records?"))
    {
        window.location.href="delete-all.php?id="+nr;
        return true;
    }
}
I have this kind of error in console "Uncaught SyntaxError: missing ) after argument list". But everything looks good.. Please, help.
 
    