I am a newbie trying to modify code a programmer produced. He is not available 
to do the modifications.
The url for the pages is 
https://secure.pininet.com/clients/lightTest2005old/index.cfm

Originally the script would collect name and address first, then collect other 
ticket ordering info. The client now wants to collect name and address later in 
the process. The new first page is the above url. Below is a section of the 
code for the new first page.

<CFOUTPUT>
<CFIF ISDEFINED("COOKIE.ShoppingCart_Cookie") IS TRUE>
<CFQUERY DATASOURCE="LIGHT">
DELETE *
FROM TEMP_SHOPPING_CART
WHERE CUSTOMERID LIKE '#COOKIE.ShoppingCart_COOKIE#'
</CFQUERY> 
<CFCOOKIE NAME="ShoppingCart_COOKIE" VALUE="" expires="now">
</cfif>
</cfoutput>

<CFQUERY DATASOURCE="LIGHT" NAME="SELECT_DATE">
SELECT *
FROM TEMP_SHOPPING_CART
</cfquery>

<CFOUTPUT>
<CFQUERY DATASOURCE="LIGHT" NAME="qPULL">
SELECT MAX(ORDER_NUMBER) As MaxNumber
FROM Order_ID
</cfquery>
<CFSET ORDERID = (#qPULL.MAXNUMBER#)>
<CFSET RANDOM_CHOICE = #RandRange(1, ORDERID)#>
<CFQUERY DATASOURCE="LIGHT" NAME="GRAB_ORDERTYPE">
SELECT *
FROM ORDER_ID
WHERE ORDER_NUMBER = #RANDOM_CHOICE#;
</cfquery>
<CFSET TYPE = GRAB_ORDERTYPE.ORDER_PREID> 
<CFSET COMPLETE_ORDER_GENERATOR = #RandRange(100, 100000)#>
<CFSET ORDER_NUMBER = TYPE & COMPLETE_ORDER_GENERATOR> 
<CFSET CustomerID = #ORDER_NUMBER#>

</CFOUTPUT>


-----------------------------------------------------------------------
Below is a section of the code for the new second page (this page is generating 
the error message).

<CFIF #PAGE_ID# IS "UPDATING">




<CFOUTPUT>

<CFQUERY DATASOURCE="LIGHT">
UPDATE TEMP_SHOPPING_CART
SET TICKET_NUMBER='#FORM.TICKET_NUMBER#'
WHERE CUSTOMERID = '#Cookie.ShoppingCart_Cookie#' 
</CFQUERY>
<CFSET PAGE_ID = "RETURNING">
</CFOUTPUT> 
<CFELSE>
<CFSET PAGE_ID = "RETURNING">
</CFIF> 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:844
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to