I have a strong feeling that the IF or mysql_query won't work. (I guess it is the IF)
if(isset($_POST['delete']) && $admin == "3"){
$query = mysql_query("DELETE FROM dis_posts WHERE post_id = '".$posts['post_id']."'");
$result = mysql_query($query);
header("Location: ". $_SERVER['REQUEST_URI']);
}
Help please? Thanks in advance.