Allowing users on your website to set restrictions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jamiu
Forum Newbie
Posts: 2
Joined: Wed Dec 14, 2011 1:44 am

Allowing users on your website to set restrictions

Post by jamiu »

Good morning,am a newbie to php......I have a page where a user can control ...and other users can sign up to the page . I want to grant users on my website the ability to choose their restrictions like a form where they can set restrictions like.....age,sex...ie if a user set restrictions to male only...I.e allow males ....another user which as sex set as female...won't be able to sign up on the users page...something like that...any form of help would be appreciated..thank u
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Allowing users on your website to set restrictions

Post by Christopher »

Do these users have accounts?
(#10850)
jamiu
Forum Newbie
Posts: 2
Joined: Wed Dec 14, 2011 1:44 am

Re: Allowing users on your website to set restrictions

Post by jamiu »

Yes...they have accounts....where they choose their respective ages,sex interests and other things...thank you
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Allowing users on your website to set restrictions

Post by Christopher »

You could just add those fields to the data table that hold the user account information. That would work if it is just a few items. Or have a separate table(s) that contain this information using the ID of the user table as the relational key.
(#10850)
Post Reply