<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1047245" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1047245</link>
    <description></description>
    <language>en</language>
          <item>
    <title>You need some form of mapping</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/php-access-rights-catalogs#comment-1252059</link>
    <description> &lt;p&gt;You need some form of mapping users to catalogs. How to do this exactly depends on your current environment. Are the users stored in a database? If they are, you would create a new table for catalogs, something like:&lt;/p&gt;
&lt;p&gt;catalogs&lt;br /&gt;
---------&lt;br /&gt;
catalog_id&lt;br /&gt;
catalog_name&lt;br /&gt;
catalog_filepath&lt;/p&gt;
&lt;p&gt;..add any other fields you need to keep track of your catalogs. Then to assign catalogs to users, you would make another table, like:&lt;/p&gt;
&lt;p&gt;catalogs_user&lt;br /&gt;
---------------&lt;br /&gt;
catalogs_user_id&lt;br /&gt;
user_id&lt;br /&gt;
catalog_id&lt;/p&gt;
&lt;p&gt;..in which every record defines 1 access. When a user logs in, you can select from catalogs_user and join the catalogs table, giving you a list of exactly the catalogs that a user has access to. If this isn&#039;t making any sense to you, check out a few tutorials on MySQL joins.&lt;/p&gt;
 </description>
     <pubDate>Thu, 05 Aug 2010 08:45:24 +0000</pubDate>
 <dc:creator>chlab</dc:creator>
 <guid isPermaLink="false">comment 1252059 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
