hello,
if when i fill in a text box on my page i put a single quote in, when it comes to running the SQL to update my database with the value of the text box i get an error because of the single quote, how do i go about fixing this?
my SQL curently looks like this:
"UPDATE tblDJ SET Area = '" & ddlArea.SelectedIndex & "', Telephone = '" & txtTelephone.Text & "', Years = '" & txtYears.Text & "', ProffYears = '" & txtProffYears.Text & "', CV = '" & txtCV.Text & "', Updated = #" & Now() & "#, MinPay = '" & txtMinWage.Text & "', Available = 1 where userID = " & Session("userid"
and if for example i have a ' in the txtCV text box i get the error.
any help would be greatly appreciated!
cheers ,
matt
if when i fill in a text box on my page i put a single quote in, when it comes to running the SQL to update my database with the value of the text box i get an error because of the single quote, how do i go about fixing this?
my SQL curently looks like this:
"UPDATE tblDJ SET Area = '" & ddlArea.SelectedIndex & "', Telephone = '" & txtTelephone.Text & "', Years = '" & txtYears.Text & "', ProffYears = '" & txtProffYears.Text & "', CV = '" & txtCV.Text & "', Updated = #" & Now() & "#, MinPay = '" & txtMinWage.Text & "', Available = 1 where userID = " & Session("userid"
and if for example i have a ' in the txtCV text box i get the error.
any help would be greatly appreciated!
cheers ,
matt