eeccll
01-12-2006, 05:56 AM
hihi.. does anyone know how to format input string which contains single quote, before insert into database? :confused: I found information from net, giving this example:
strUserData=Quotes(request.form("T1"))
strSQLData="select Name from UserNames where Name='" & strUserData & '"
Function Quotes(strInput)
strInput=replace(strInput,"'","''")
End Function
but the input string become empty.. can anyone help me?? I'm doing asp.net with VB language.. thankssss..
strUserData=Quotes(request.form("T1"))
strSQLData="select Name from UserNames where Name='" & strUserData & '"
Function Quotes(strInput)
strInput=replace(strInput,"'","''")
End Function
but the input string become empty.. can anyone help me?? I'm doing asp.net with VB language.. thankssss..