Destramic Posted April 17, 2007 Share Posted April 17, 2007 I’m making a website where there will be an administration panel if having access as an admin and a clan login which will have different options and access’. I want to make an auth in OOP but I’m trying to find the best way of doing it? Both admin and clan users will be created in different tables to make it easier… Eg: Admin table ------------- Administration_id Username Password Email ------------- Users table User_id Clan_id (which will link me to their profile) Username Password What will be the best way of doing this with oop? Ricky Quote Link to comment Share on other sites More sharing options...
Destramic Posted April 17, 2007 Author Share Posted April 17, 2007 would i be able to join both tables and select a user ? is that possible? Quote Link to comment Share on other sites More sharing options...
chriscloyd Posted April 17, 2007 Share Posted April 17, 2007 how about making it one table and having access column stating if they are admins on clan members Quote Link to comment Share on other sites More sharing options...
Destramic Posted April 17, 2007 Author Share Posted April 17, 2007 but i also want to store information about clan that admin users wont need...? Quote Link to comment Share on other sites More sharing options...
Destramic Posted April 17, 2007 Author Share Posted April 17, 2007 is there a away i can join both users and admin table and check both tables for a certian user and pass? Quote Link to comment Share on other sites More sharing options...
Destramic Posted April 17, 2007 Author Share Posted April 17, 2007 im not sure what the best think is to do for what i need? would this work? users ------------------ user_id clan_id username password email icon access 'clan', 'admin' -------------------- and if access = admin then i would leave clan_id blank? can someone give me some id on how this should work? Quote Link to comment Share on other sites More sharing options...
notepad Posted April 17, 2007 Share Posted April 17, 2007 Try this tutorial? http://evolt.org/node/60384 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.