Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cookies error

Status
Not open for further replies.

krappleby025

Programmer
Sep 6, 2001
347
NL
query2="SELECT * FROM settings WHERE team='" & teams & "'"
con.execute query2
Response.Cookie("warhammer40kworld")("font1")=query2("font1")
Response.Cookie("warhammer40kworld")("font2")=query2("font2")
Response.Cookie("warhammer40kworld")("background")=query2("background")

***************

what is wrong, i keep getting

Microsoft VBScript runtime error '800a000d'

Type mismatch

 
query2 is a string, not a recordset. I think you're looking for

set rs = con.execute query2

blahblahblahb = rs("font1")

penny.gif
penny.gif
 
Besides that, the syntax is : Response.Cookie[red]s[/red], but not Response.Cookie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top