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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

searching

Status
Not open for further replies.

vlitim

Programmer
Sep 2, 2000
393
GB
I have a column which is a varchar and holds from all to 1 of the below codes in a comma delim list

USA,EUR,LAT,PAC

when someone logs on to the system one of the four codes is assigned to a session cookie.

What I need to do is have a Select Query which brings out only the data that you have access to. Ie if I can only look at USA products how do you create a select query that looks in the column to see whether you have access.

any help

cheers
 
vlitim,

I am a bit confused on your question. Do you have a column that means 'access to certain products'? I will call if for this example, Col_Access. If so, just do something similar to this:

select Product from tablename where Product='USA' and Col_Access='Yes'

You can just replace USA with whatever you pass in from a form...request.form("fieldname_of_product")

That's really all I can give you not seeing or knowing what you have.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top