Hello Masters, I am new in Codeignitor but i enjoy here.I have one problem like,
I want only display value comparison last date less then or equal current date. Last date <= current date.here last date mention by user.If last date greater then current date then those value auto delete or desible from table list.
i am trying like this:
Model:
public function selectClsTrainingByUserId($limit,$offset = 0) {
$this->db->select('*');
$this->db->where("crs_last_date <=", $date); // here, crs_last_date mention by user posing time
$this->db->order_by("upcom_id", "desc"); // and $limit, $offset use for pagination
$query_result = $this->db->get('tbl_upcoming_course',$limit,$offset);
$result = $query_result->result();
return $result;
}
Please master if you can explain me step by step.
Best Regards,
RJony