这一行
$result=mssql_query("select content from word where w_id=$id");
变量$id没有定义,所以提交给mssql_query()的查询语句实际是
select content from word where w_id=
,所以出错