|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
grrr sry for being such a pest
my syntax is wrong and it's really getting agravating Code:
<% SQL = "UPDATE IM " & _
"SET FirstName = '" & fname & "' " & _
"WHERE ID = " & ID %>
that works fine, but now i am trying to Code:
<% SQL = "UPDATE IM " & _
"SET FirstName, LastName, Mobile = '" & fname & "','" & lname & "','" & mobile & "' " & _
"WHERE ID = " & ID %>
Thanks |
|
#2
|
|||
|
|||
|
UPDATE tablename
SET Field1 = value1, Field2 = value2, ... WHERE your where clause Hope this helps! Sincerely Vlince |
|
#3
|
|||
|
|||
|
ahhh yes it does. i was trying
UPDATE table SET name, age, email = blah, blah , blah doh Thanks! |
|
#4
|
|||
|
|||
|
grrrrrr
Code:
<% SQL = "UPDATE IM SET Firstname = '" & fname & "', LastName = '" & lname & "' WHERE ID = " &ID %> damn still not working |
|
#5
|
|||
|
|||
|
well to answer my own question i forgot to request the lname variable, thanks all
|
|
#6
|
|||
|
|||
|
That's why you should get use to make a Response.Write of your SQL Query *BEFORE* you actually execute it.
Its a habit I got and really helped me in the past. <% . . . . . . strSql = "..........." 'FOR DEBUG ONLY 'Response.Write strSql & "<hr>" 'Response.End objConn.Execute strSql . . . . . . %> Hope this helps! Sincerely Vlince |
|
#7
|
|||
|
|||
|
good point
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Trouble with multiple updates |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|