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 Link to comment https://forums.phpfreaks.com/topic/47360-auth-help-oop/ 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? Link to comment https://forums.phpfreaks.com/topic/47360-auth-help-oop/#findComment-231077 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 Link to comment https://forums.phpfreaks.com/topic/47360-auth-help-oop/#findComment-231081 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...? Link to comment https://forums.phpfreaks.com/topic/47360-auth-help-oop/#findComment-231088 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? Link to comment https://forums.phpfreaks.com/topic/47360-auth-help-oop/#findComment-231309 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? Link to comment https://forums.phpfreaks.com/topic/47360-auth-help-oop/#findComment-231458 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 Link to comment https://forums.phpfreaks.com/topic/47360-auth-help-oop/#findComment-231465 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.