sinistapenguin
Technical User
Hi Again All
I have successfully managed to create a page that updates 2 tables and inserts into another.
I did this by following Cheech's advice and having a seperate page which read in the variables, then did the inserts.
I combined his advice with a DRDEV article on building Update Stored Procedures in Dreamweaver.
I now want to add another UPDATE command to this page where the page reads in 2 Session variables, then updates a table accordingly.
Whatever I do seems to result in a "Syntax error in UPDATE statement". This is what I have:
<%
if(Session("NewAuto"
<> ""
then varNewAuto = Session("NewAuto"
if(Session("Prefix"
<> ""
then varPrefix = Session("Prefix"
%>
<% *** all the standard DMX stored procedure code**
"UPDATE AutoNumber SET Number = varNewAuto WHERE Prefix = 'varPrefix'"
*** the rest of the standard DMX code***
%>
Are there any glaring errors in this code? - If you use the 'Wizard' to create the SP you get all sorts of "+ Replace ('","' type stuff.
Even if I copy a piece of code that works and just change the names of the procedure and tables/ variables etc. It just won't work!!
Thanks in advance
Sinista
I have successfully managed to create a page that updates 2 tables and inserts into another.
I did this by following Cheech's advice and having a seperate page which read in the variables, then did the inserts.
I combined his advice with a DRDEV article on building Update Stored Procedures in Dreamweaver.
I now want to add another UPDATE command to this page where the page reads in 2 Session variables, then updates a table accordingly.
Whatever I do seems to result in a "Syntax error in UPDATE statement". This is what I have:
<%
if(Session("NewAuto"
if(Session("Prefix"
%>
<% *** all the standard DMX stored procedure code**
"UPDATE AutoNumber SET Number = varNewAuto WHERE Prefix = 'varPrefix'"
*** the rest of the standard DMX code***
%>
Are there any glaring errors in this code? - If you use the 'Wizard' to create the SP you get all sorts of "+ Replace ('","' type stuff.
Even if I copy a piece of code that works and just change the names of the procedure and tables/ variables etc. It just won't work!!
Thanks in advance
Sinista