entering data in sql database through asp

Posted by sushant on Stack Overflow See other posts from Stack Overflow or by sushant
Published on 2010-06-14T07:19:33Z Indexed on 2010/06/14 7:22 UTC
Read the original article Hit count: 138

Filed under:
pass=session("password")
Set objIns=server.CreateObject("adodb.connection")
objIns.Open session("Psrconnect")

inspass="Insert into passwords(pass) values ('&pass&')"
objIns.Execute(inspass)

i dont know what should be the syntax to pass the value stored in the variable. with this syntax, the value entered in the database is &pass&. can anyone plz help me out?

© Stack Overflow or respective owner

Related posts about asp-classic