Hi.
I came across this site while looking for a function to replace Quotation marks in SQL.
This is my code.
<!-- Begin Code -->
Intro = Replace(Intro," '","''")
Text = Replace(Text,"' ","''")
SQL = "Insert Into Articles(Author Id,CatId,Topsto ryId,Headline,S ubheadline,Intr o,Text) Values ('" & Request("Author Id") & "','" & Request("CatId" ) & "','" & Request("TopSto ryId") & "','" & Request("Headli ne") & "','" & Request("Subhea dline") & "','" & Intro & "','" & Text &"')"
<!-- End Quote -->
Now the problem I have is that when I execute my sql server statement no value is written in the database for Intro and Text, can anyone see where I am going wrong?
I came across this site while looking for a function to replace Quotation marks in SQL.
This is my code.
<!-- Begin Code -->
Intro = Replace(Intro," '","''")
Text = Replace(Text,"' ","''")
SQL = "Insert Into Articles(Author Id,CatId,Topsto ryId,Headline,S ubheadline,Intr o,Text) Values ('" & Request("Author Id") & "','" & Request("CatId" ) & "','" & Request("TopSto ryId") & "','" & Request("Headli ne") & "','" & Request("Subhea dline") & "','" & Intro & "','" & Text &"')"
<!-- End Quote -->
Now the problem I have is that when I execute my sql server statement no value is written in the database for Intro and Text, can anyone see where I am going wrong?
Comment