Hello,
I am trying to pass a session variable = userid to a model which runs a sql query then passes the query back to the controller which passes the data to thew view.
Apologies for the newbie question, if you could point me in the right direction or provide a link to some tutorials that would be much appreciated
function functionname($data){
$query = $this->db->query("SELECT * FROM table WHERE column = $data");
return $query->result();
}