首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

帮小弟我卡看哪里写错了

2012-02-23 
帮我卡看哪里写错了?jdescription和position都有值,可就是写不进库里,什么问题?SqlStrselect*fromadminw

帮我卡看哪里写错了?
jdescription和position都有值,可就是写不进库里,什么问题?
SqlStr   =   "select   *   from   admin   where   position= "&position& " "
Set   Rs   =   Server.CreateObject( "adodb.recordset ")
Rs.Open   SqlStr,   Conn,   1,   3
if   not(rs.eof   and   rs.bof)   then
response.write( " <script> alert( " "该管理职位已存在!请重新输入 " ");location.href= " "admin_position.asp?action=add " "; </script> ")
response.end          
else
Rs.Addnew
Rs( "position ")   =   position
Rs( "description ")   =   jdescription
Rs.Update
Rs.Close
Set   Rs   =   Nothing
end   if

[解决办法]
SqlStr = "select * from admin where position= ' "&position& " ' "

热点排行