Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update statement

Status
Not open for further replies.

s4dadmin

Programmer
Apr 27, 2003
107
US
This update statement does not have any errors, but the last field does not update the field in the database. I have response.write the statement and the data is correct. It is an update statement without a where clause. Here is the statement

sqlUpdate = "Update site_config SET " _
& "letterSubject = '" & strSubject & "'," _
& "txtHeader = '" & strtxtHeader & "'," _
& "htmlHeader = '" & strhtmlHeader & "';"

Can anyone help?
 
Inside the strHTMLHeader, are there quotes? or other characters that can conflict with the parsing of the sql statement

Bastien

Any one have a techie job in Toronto, I need to work...being laid off sucks!
 
Is the HTML exceeding the field size? And is it the right type?

Craig
 
No there are not any quotes or any other characters in this string and I change all single quotes to double quotes, the field size is set to text in mysql which is like a memo at something like 65,000 characters.
I am testing something like 20 characters
 
can you show the sample code and sample string?

Bastien

Any one have a techie job in Toronto, I need to work...being laid off sucks!
 
Here is the sql statement again.
sqlUpdate = "Update site_config SET " _
& "letterSubject = '" & strSubject & "'," _
& "txtHeader = '" & strtxtHeader & "'," _
& "htmlHeader = '" & strhtmlBody & "' " _
& "Where rowNum = 1;"

And here is the response.write statement
Update site_config SET letterSubject = 'This is the Subject. dddsfasdf d zzz',txtHeader = 'This is the text header asdfsdf sdzzz',htmlHeader = 'This is the html body.a dfasdf zzz' Where rowNum = 1;

letterSubject updates, txtHeader updates, htmlHeader does not update
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top