查询失败了
$result=mysql_query($str,$link_id) or die(mysql_error());
看看出错的原因

解决方案 »

  1.   

    $str="select content from reply where bookid =".$_GET["recordid"];
    echo $str;错误的原因,应该是sql执行没有返回结果集。
      

  2.   

    You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
      

  3.   

    select content from reply where bookid =You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    语法错了,怎么改呢?
      

  4.   

    echo $_GET["recordid"];看看有什麼,如果是空,sql就會出錯了。