if($tsk != ""){
    $SQL = "SELECT * FROM $tsk WHERE username = '$user'";
    $result = mysql_query($SQL);
    while ($db_field = mysql_fetch_assoc($result)) {
        $acc = $db_field['accepted'];
    }
    if($acc == 1){
        die("<script>location.href = 'task_mem_acc.php'</script>");
    }
}
Notice: Undefined variable: tsk in C:\xampp\htdocs\online\Online Task Management System\task_mem.php on line 80
This problem always appear,
how to fix this problem?
please help me master!
 
    