Welcome Guest, Not a member yet? Register   Sign In
Matching Dates
#4

[eluser]Sanjay Sarvaiya[/eluser]
in where cause compare date format Y-m-d.
bellowed code is not tested just for your reference.
Code:
function count_date_events($date_is)
    {
  
  return  $this->db
      ->select("DATE_FORMAT(`event_date_begin`,'%Y-%m-%d') AS event_date_begin", FALSE)
            ->where(DATE_FORMAT(`event_date_begin`,'%Y-%m-%d'), $date_is)
      ->from('eventcal')
                  ->count_all_results();
    }


Messages In This Thread
Matching Dates - by El Forum - 08-16-2012, 04:50 AM
Matching Dates - by El Forum - 08-16-2012, 05:37 AM
Matching Dates - by El Forum - 08-16-2012, 09:11 PM
Matching Dates - by El Forum - 08-16-2012, 10:22 PM
Matching Dates - by El Forum - 08-16-2012, 10:50 PM
Matching Dates - by El Forum - 08-17-2012, 12:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB