Page 1 of 1

users see only their contacts

Posted: Fri Sep 04, 2009 4:27 am
by andydeans
hi,

could anyone point me to a tutorial or any help on having users see their own contacts only?

basically have a contacts database and want to have it so the agents login and can see their contacts only but admin can see alll and add notes to?

any help please.

many thanks

andy

Re: users see only their contacts

Posted: Fri Sep 04, 2009 4:31 am
by dejvos
Hi,

you should use sessions:
http://us.php.net/manual/en/reserved.va ... ession.php

than you have to estabilsh database with user a and permissions ( I recommand two tables users and perrmissions).

Your user will have to log in and then you can get his role throught $_SESSION['somethink'].

Everythink clear?

Bye

Re: users see only their contacts

Posted: Tue Oct 27, 2009 3:33 pm
by andydeans
thanks for the help.