$this->db->select("FROM_UNIXTIME(created, '%Y-%m-%d' ) AS day") ......
ci is:
SELECT FROM_UNIXTIME(created, `'%Y-%m-%d'` ) AS day
How to avoid mysql’s timestamp function by adding the `` symbol
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
Can you try escaping the single quotes
$this->db->select('FROM_UNIXTIME(created, "%Y-%m-%d" ) AS day');
$this->db->select("from_unixtime(created,'%Y-%m-$d') as day",false)
Add false parameter
Can you try escaping the single quotes
Add false parameter