victoria_1018
10-27-2003, 09:16 AM
Hi,
I am currently developing a shopping cart but had met some difficulties in inserting the delivery chagres.
The error prompt that there is error in the Selete Statement.
I had tried but could not spot the error.
Here is the statement statement
<%
WHILE NOT RS.EOF
weightTotal = weightTotal + ( RS( "product_weight" ) * RS( "cart_quantity" ) )
'Get Delivery Charges
sqlString1 = "SELECT user_country, DHL_Country, DHL_Weight, DHL_Price FROM users, DHLCharge" &_
"WHERE user_id=" & userID & " AND (user_country = DHL_Country " &_
"AND DHL_Weight LIKE %" & product_category & "%) "
SET RS = Con.Execute( sqlString1 )
deliveryCharge = RS( " DHL_Price" )
orderTotal = orderTotal + ( RS( "product_price" ) * RS( "cart_quantity" ) ) + deliveryCharge
%>
I had also attached the script in together with this page.
Thanks
Regards
victoria
I am currently developing a shopping cart but had met some difficulties in inserting the delivery chagres.
The error prompt that there is error in the Selete Statement.
I had tried but could not spot the error.
Here is the statement statement
<%
WHILE NOT RS.EOF
weightTotal = weightTotal + ( RS( "product_weight" ) * RS( "cart_quantity" ) )
'Get Delivery Charges
sqlString1 = "SELECT user_country, DHL_Country, DHL_Weight, DHL_Price FROM users, DHLCharge" &_
"WHERE user_id=" & userID & " AND (user_country = DHL_Country " &_
"AND DHL_Weight LIKE %" & product_category & "%) "
SET RS = Con.Execute( sqlString1 )
deliveryCharge = RS( " DHL_Price" )
orderTotal = orderTotal + ( RS( "product_price" ) * RS( "cart_quantity" ) ) + deliveryCharge
%>
I had also attached the script in together with this page.
Thanks
Regards
victoria