Forum Moderators: open
I think i almost have it. I think i am just getting a couple of things the wrong way round.
My string looks like this:
sql="UPDATE my_table SET "
if request("fullname") <> 0 then
"fullname = '" & fullname & "'"
Basically what i am trying to do is give my UPDATE Certain criteria. If the user puts in a new name, then update it. If the user does not put in a name at all, then do not update what is already there. Thus the: if request("fullname") <> 0 then....... etc
Not sure exactly what it is i am getting wrong.
Any ideas?
Webboy
I have one page on which the user can select 20 or more columns to print, along with various filters for thousands of possible SQL combinations on the page eventually generated.
You just have to be careful with the SQL statement itself.