You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi this is a great user system, I am trying to implement a system when the users are on one database and when the user logs in the part of the information will be where the rest of the data is stored
//something like this
protected function setUser()
{
$account = $this->CI->db->get_where("accounts", array("id" => $this->user->account_id))->row(0);
$_SESSION['db_name'] = $account;
var_dump($_SESSION['db_name']);
Hi this is a great user system, I am trying to implement a system when the users are on one database and when the user logs in the part of the information will be where the rest of the data is stored
//something like this
protected function setUser()
{
$account = $this->CI->db->get_where("accounts", array("id" => $this->user->account_id))->row(0);
$_SESSION['db_name'] = $account;
var_dump($_SESSION['db_name']);
.....................
return true;
}
the var_dump give this
object(stdClass)#27 (6) { ["id"]=> string(1) "1" ["company"]=> string(10) "management" ["database"]=> string(21) "management_qpuv0o2y3r" ["user_limit"]=> string(1) "1" ["created_at"]=> NULL ["updated_at"]=> NULL }
The text was updated successfully, but these errors were encountered: