+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2010
    Location
    Pakistan
    Posts
    18
    Downloads
    0
    Uploads
    0

    Default 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.

  2. WebmasterServe Adverts:
  3. #2

    Default

    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

  4. #3
    Join Date
    Dec 2010
    Location
    Philippines
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default

    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.com
    Last edited by jalicia18; 01-28-2011 at 11:18 AM.

+ Reply to Thread

Similar Threads

  1. Parham's PHP Tutorial
    By Ardenn in forum Website Programming Discussion
    Replies: 13
    Last Post: 02-03-2012, 05:51 AM
  2. Simple PHP Template Tutorial
    By theomnis in forum Website Programming Discussion
    Replies: 8
    Last Post: 03-30-2005, 03:39 PM
  3. PHP Security: PHPSC Site launched!
    By alexandru in forum Computers
    Replies: 0
    Last Post: 02-07-2005, 02:28 PM
  4. PHP Security <- A MUST READ
    By alexandru in forum Website Programming Discussion
    Replies: 0
    Last Post: 01-19-2005, 02:59 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150