CodeIgniter Forums

Full Version: changing the tables acccording to my needs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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,

El Forum

[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