+ Reply to Thread
Results 1 to 3 of 3
Thread: PHP Access, Rights in catalogs
-
07-26-2010 12:10 PM #1
PHP Access, Rights in catalogs
hi there
i m new in php i have a project in which there is a requirement of catalogs download but these catalogs based on right, for example we have 20 catalogs of laptops,HP, Dell, Acer, and we want that user can only see and download that catalogs which we have assigned to that user, let suppose catalogs of only HP.
so any 1 have knowledge to solve this problem guide me.
-
09-22-2010 11:39 AM #2
Senior Member





- Join Date
- May 2007
- Posts
- 148
- Downloads
- 0
- Uploads
- 0
Hi,
You need at least two tables. One contains the assigned access level to the catalogs, and the other one must store the access level of the catalogs. The download should be controlled by get parameter eg. yoursite/downloadcatalogue.php?id=2 which will download the catalog with the id of 2. This downloadcatalogue.php will check if the customer has teh required access level to download the requested resouce.
Good luck
-
01-28-2011 11:08 AM #3
create a 2 tables. 1 for users and access of the catalogs... the other 1 for catalogs . (users + catalogs)
Table: Users
userid, username, catalogid
Table: Catalogs
catalogid, catalogname, catalogdescription
Table Users and Catalogs has a field that are common.
In your script, make a condition if this user has the right to download this catalog id. then else would be directed to the homepage or print out the code to display has no right...
Outsourcing - tyfinc.comLast edited by jalicia18; 01-28-2011 at 11:18 AM.
Similar Threads
-
Parham's PHP Tutorial
By Ardenn in forum Website Programming DiscussionReplies: 13Last Post: 02-03-2012, 05:51 AM -
Simple PHP Template Tutorial
By theomnis in forum Website Programming DiscussionReplies: 8Last Post: 03-30-2005, 03:39 PM -
PHP Security: PHPSC Site launched!
By alexandru in forum ComputersReplies: 0Last Post: 02-07-2005, 02:28 PM -
PHP Security <- A MUST READ
By alexandru in forum Website Programming DiscussionReplies: 0Last Post: 01-19-2005, 02:59 PM


LinkBack URL
About LinkBacks


Reply With Quote




Bookmarks