或者你需要打开php.ini里面的全局变量啊。
建议用上面的方法。

解决方案 »

  1.   

    $result=mssql_query("select content from word where w_id=".$id,$con)
    更保险
      

  2.   

    echo "select content from word where w_id=$id";
    看看有没有结果,是不是select content from word where w_id=45
    ----------------------------
    你的语句后没分号:)
    是不是还没连上SQL Server :)
      

  3.   

    纠正一下,是
    $id=$HTTP_GET_VARS['id'];
      

  4.   

    PHP4.2.2以后就默认就不能用$id这样的方法得到了。
    而是用$_GET['id']