【发布时间】:2010-01-21 19:48:00
【问题描述】:
到目前为止,这是我的代码,除了我尝试让 'company' = $company 时,我的代码都可以正常工作,我想知道什么
if($query) // if the user's credentials validated///
{
$this->db->where('username');
$this->db->select('company');
$company = $this->db->get('user');
$data = array(
'username' => $this->input->post('username'),
'company' => $company
'is_logged_in' => true
);
$this->session->set_userdata($data);
redirect('site/members_area');
}
else
{
$this->index();
}
【问题讨论】:
标签: php session codeigniter arrays variables