i am a new user and i need your help to check my code
i am making a forum and i reached to page delete user
and i don't know what's the error so please help me because
i should finish it in two days (it is my homework)
this my code please any one read my topics
help me
<?
include('classes/config.php');//page process
$content.="delete user";
$title="Delete";
if (isset($_GET['DELETE']))
{
if($_GET['DELETE']==2)
{
header('Location: userlist.php');
}
else
{
$sql="Delete from `user` where `userID`='".$_GET['ID']."' ";
$query_res=mysql_query($sql,$connect);
if($query_res)
$content="the query is succeed";
}
}
else
{
$content = 'Are you sure you want to delete this account ?<br>';
$content .= '<a href="'.$_SERVER["PHP_SELF"].'"?DELETE=1&ID="'.$_GET["ID"].'">Continue</a><br><br>';
$content .= '<a href='.$_SERVER['PHP_SELF'].'?DELETE=2>Go Back </a><br><br>';
}
include('classes/layout.php');
?>
where the content is variable in layout page which i includes in this page