Welcome Guest, Not a member yet? Register   Sign In
[Solved] Display multiple rows on calendar Question
#4

>>> But what I can not seem to make it work with my get function need example.

Try adding this extra line:

Quote:public function get_calendar_data($year, $month) {
$cell_data = array();

$this->db->where('year', $year);
$this->db->where('month', $month);

$this->db->where('calendar_id', TRUE); // EXTRA LINE NEEDS VALIDATING
$query = $this->db->get();

If that doesn't work then echo last_query() and add " WHERE calendar_id > 0"
Reply


Messages In This Thread
RE: Display multiple rows on calendar Question - by John_Betong - 12-19-2015, 08:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB