acc
04-21-2006, 04:50 PM
I have a brain teaser of a situation (at least for me).
Can you see the error here? I certainly can't...been looking at it for hours.
set rsResult=conntemp.Execute("UPDATE user_data SET hz_score = " & Request.querystring("hz_score"),"hz_status ='" & Request.querystring ("hz_status") & "' WHERE user_name='" & Request.querystring("user_name") & "' AND user_id = '"& Request.querystring("user_id") & "'")
When I put the following in the IE Location Bar to test, I don't get an error, but the db doesn't update the hz_status field.
.../result_rec.asp?user_name=alan&user_id=6&hz_score=35&hz_status=commander
I know it's something I need to do re: quote placement for the second SET statement and the separating comma... just don't see it.
Thanks if you have any insight.
alan
Can you see the error here? I certainly can't...been looking at it for hours.
set rsResult=conntemp.Execute("UPDATE user_data SET hz_score = " & Request.querystring("hz_score"),"hz_status ='" & Request.querystring ("hz_status") & "' WHERE user_name='" & Request.querystring("user_name") & "' AND user_id = '"& Request.querystring("user_id") & "'")
When I put the following in the IE Location Bar to test, I don't get an error, but the db doesn't update the hz_status field.
.../result_rec.asp?user_name=alan&user_id=6&hz_score=35&hz_status=commander
I know it's something I need to do re: quote placement for the second SET statement and the separating comma... just don't see it.
Thanks if you have any insight.
alan