这一行
$result=mssql_query("select content from word where w_id=$id");
变量$id没有定义,所以提交给mssql_query()的查询语句实际是
select content from word where w_id=
,所以出错
$result=mssql_query("select content from word where w_id=$id");
变量$id没有定义,所以提交给mssql_query()的查询语句实际是
select content from word where w_id=
,所以出错
extract($HTTP_POST_VARS); // 加上这行$con=mssql_connect("localhost","","");
mssql_select_db("pbc");
$result=mssql_query("select w_id,title,header,wh1,wh2,wh3 from word");
.....
$result=mssql_query("select w_id,title,header,wh1,wh2,wh3 from word",$con);
少了个参数
这行有什么用呀?