FAIL]
"); } $tbl_name="forum_answer"; $sql = "SELECT a_name FROM $tbl_name WHERE question_id='".$topic."' AND a_id='".$answer."'"; $result = mysql_query ($sql); $user=mysql_fetch_array ($result); //die($user[0]); if($_SESSION["user_nickname"] == $user[0] || $_SESSION["user_admin"] == "1") { $sql="DELETE FROM ". $tbl_name ." WHERE question_id='".$topic."' AND a_id='".$answer."'"; $result1=mysql_query($sql); } else { die("ERROR!!!"); } if($result && $result1) { header ("Location: ".$moduleurl."&uebergabe=1&uebergabe2=".$topic."&uebergabe3=1"); } else { echo "ERROR"; } mysql_close(); ?>