You are here: Re: search 2 tables to get different session « PHP Programming Language « IT news, forums, messages
Re: search 2 tables to get different session

Posted by puneet.kandhari on 11/10/05 20:29

add a field to the user_table which has a groupd setting say
admin == 1
logged in == 2
anonymous == 3
and so on
a small look up table to get the assocaited permissions for each group
and this would be all one query using a join.

When you have validated the user also get his group id and group
permissions.

on the other hand if different users have different permissions try
this
make a user_id/permission_id table. On Validation check what permission
set that user id is associated with and then retrieve the same from
your admin table

--
take care
puneet

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация