Query Codeigniter:
$bookvisit = $this->db->query("SELECT ( SELECT name FROM tbl_user as u WHERE u.user_id=b.user_id ) as BookVisitFrom, b.status as status, b.booktime as booktime, b.bookdate as bookdate, --> b.created as created, b.is_confrim as is_confrim, b.id as id FROM tbl_bookvisit as b "); I want only Date from DateTime from the "created"(its column name) how can i get it!!
WHERE u.user_id=b.user_idis invalid statement