Here is the code, I have shown what the error is referring to below
<%'prevent cacheing
Response.CacheControl = "no-store"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
%>
<!-- #include file="inc/declareinc.asp"-->
<%
quantity=0
saved_quantity=0
Subtotal=0
'establish the basket id in a session and a cookie.
'if it doesn't exist then enter a new basket into the database.
if session("basket_id")="" then
if request.cookies("basket_id")="" then
sql="select max(basket_id) from basket"
set objrs=objconn.execute(sql)
if not objrs.eof then
max_basket_id=cint(objrs(0))+1
basket_id=max_basket_id
sql="insert into basket (user_id) values ("&basket_id&")"
******************************************************
ERROR ON THIS LINE! objconn.execute(sql)
response.Cookies("basket_id")
******************************************************
=max_basket_id
response.Cookies("user_id").expires=#1/1/2010 00:00:00#
session("basket_id")=max_basket_id
else
Response.write "error"
Response.end
end if
else
session("basket_id")=request.cookies("basket_id")
basket_id=request.cookies("basket_id")
end if
else
basket_id=session("basket_id")
end if
catid=request.querystring("catid")
if catid<>"" then
' it's an action from this page.
if request.querystring("act")="add" then
call add(catid, basket_id)
end if
if request.querystring("act")="addtocart" then
call addtocart(catid, basket_id)
end if
if request.querystring("act")="save" then
call addtosave(catid, basket_id)
end if
if request.querystring("act")="delete" then
call delete_product(catid, basket_id)
end if
end if
%>