sql="update cnk_users set question='"&question&"',truename='"&truename&"',sex="&sex&",idcard='"&idcard&"',birthday='"&birthday&"',UserIM='"&UserIM&"',address='"&address&"',tel='"&tel&"',fax='"&fax&"',mobile='"&mobile&"',email='"&email&"',UserInfo='"&UserInfo&"',Sign='"&Sign&"',userface='"&userface&"',Jifen="&Jifen&",Jinbi="&Jinbi&",PubNum="&PubNum&",RepNum="&RepNum&",regTime='"®Time&"',LastLoginTime='"&LastLoginTime&"',LastLoginIP='"&LastLoginIP&"',isLocked="&isLocked&",power='"&power2&"'"
if VipStartDate<>"" then sql=sql&",VipStartDate='"&VipStartDate&"'"
if VipEndDate<>"" then sql=sql&",VipEndDate='"&VipEndDate&"'"
if RegPassword<>"" then sql=sql&",userpassword='"&md5(RegPassword)&"'"
if answer<>"" then sql=sql&",answer='"&md5(answer)&"'"
sql=sql&" where UserID="&thisuserid
conn.execute(sql)
Call alertmsg("资料修改成功!")
数据库都没有设什么啊