du stavar fel på "cookies" bara så du vet
Set DB_QUERY = Connect.Execute("SELECT * FROM tbl_Products")
strTemp = Request.Kookies("user")("PriceCol")
Response.Write(strTemp) '-- Värdet skrivs ut till col_Price_3
Response.Write(DB_QUERY(strTemp))
tabellen ser ut såhär:
tbl_Products:
ID
col_Price_1
col_Price_2
col_Price_3
col_Price_4
col_Price_5
-------------------------------------------------------------------
Felmeddelandet.
ADODB.Recordset error '800a0cc1'
Item cannot be found in the collection corresponding to the requested name or ordinal.
/products.asp, line 112
rad 112 är följande rad:
Response.Write(DB_QUERY(strTemp))
Vad som är konstigt är att det fungerar att göra såhär:
Response.Write(DB_QUERY("col_price_3")
Är ni med på vad jag menar?
/t
