帮帮新手吧
function sqlstr(data)
sqlstr=" ' "&replace(data," ' "," ' ' ")&" ' "
end function
sql="insert into guestbook(姓名,主题,留言) values ("
sql=sql & sqlstr(name) &","
sql=sql & sqlstr(subject) &","
sql=sql & sqlstr(memo) &")"
其中sql=sql & sqlstr(name) &","
sql=sql & sqlstr(subject) &","
sql=sql & sqlstr(memo) &")"
到底怎样赋值的??