$a=$_POST["title"];
            $sql1="delete from informationnotice where title='{$a}'"; 

解决方案 »

  1.   

    改成这样试试$a=addslashes($_POST["title"]);
    $sql1="delete from informationnotice where title='{$a}'"; 
      

  2.   

    $a=addslashes($_POST["title"]);
    $sql1="delete from informationnotice where title={$a}";
      

  3.   

    盲人摸象  也许 连 title 都没呢?哈哈   出错信息给出来先
      

  4.   

    执行query了没?
      

  5.   

    话说post转义不是默认打开的吗,新手应该不会去改吧。。
      

  6.   

    有什么错误提示么?
    改这样试试$a=addslashes($_POST["title"]);
    $sql1="delete from informationnotice where title='{$a}'";