$query=sprintf("SELECT * FROM membertable WHERE (name='%s' AND pass='%s') AND activation='%s';",
$username,$password,"NULL");
$query=$this->db->query($query);
$result=$query->result_array();
I would like to assign that result to _SESSION but
session_start();
$_SESSION=$result;
results in an incorrect result, someone could help me with this little problem ?
Open
application/config/autoload.php, and in the$autoload['libraries']array, add ‘session’:Now, to store the result, use
And to retrieve it