Welcome Guest, Not a member yet? Register   Sign In
get textbooks Published between YEAR provided[publication_date] and today
#1

       

// model function
// get textbooks Published between YEAR provided[publication_date] and today

if ($data_search["publication_date"]!='')    
           $this->db->where('publication_date >=', date("Y-m-d", mktime(0, 0, 0, 1, 1, $data_search["publication_date"])));


// you have any idea how compare dates???


// PHP my admin the field is Date field
publication_date   date

Reply


Messages In This Thread
get textbooks Published between YEAR provided[publication_date] and today - by lsepolis123 - 02-08-2018, 10:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB