I have two types of users, the user type is saved in session
in hardcode.php i have set the user table deatails as follows
/ Custom driver /
if($_SESSION['user_type']=='shop'
{
$usertable='shop'; //specifies the name of the table in which your user information is stored.
$row_username='name'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='usr_id'; //specifies the name of the field in which the user's id is stored (usually id or userid)
}
else
{
$usertable='users'; //specifies the name of the table in which your user information is stored.
$row_username='fullname'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='id'; //specifies the name of the field in which the user's id is stored (usually id or userid)
}
but custom.php always takes the else option always
i tried to customize the custom.php but there i cant get the session variable
Help me please....
I have two types of users, the user type is saved in session
in hardcode.php i have set the user table deatails as follows
/* Custom driver */
if($_SESSION['user_type']=='shop')
{
$usertable='shop'; //specifies the name of the table in which your user information is stored.
$row_username='name'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='usr_id'; //specifies the name of the field in which the user's id is stored (usually id or userid)
}
else
{
$usertable='users'; //specifies the name of the table in which your user information is stored.
$row_username='fullname'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='id'; //specifies the name of the field in which the user's id is stored (usually id or userid)
}
but custom.php always takes the else option always
i tried to customize the custom.php but there i cant get the session variable
Help me please....