CodeIgniter Forums
changing the tables acccording to my needs - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: changing the tables acccording to my needs (/showthread.php?tid=50410)



changing the tables acccording to my needs - El Forum - 03-25-2012

[eluser]mady[/eluser]
Hi friends,

I have a 2 different user types :

one type using the tables:

auth1
user1

and another one with:

auth2
user2

Note: Eventhough auth table columns looks same, but am in a situation to use authentication seperately.


I assume that changes in config table like the following can do a trick for me.

How to handle the user type: can i do some thing like this:


if(user1)
{
config(auth1.php);
}
else
{
config(auth2.php);
}



Thanks,


changing the tables acccording to my needs - El Forum - 03-26-2012

[eluser]Glazz[/eluser]
Creating two topics for the same subject is not a good thing.

How are you getting the user type ?

It is stupid IMO to use two different tables, if you have two different types of users just use Groups like InsiteFX told you to.

But without seeing any code it's not easy to help you..and next time use only 1 ( ONE ) topic if the subject is the same.

- g l a z z