Welcome Guest, Not a member yet? Register   Sign In
Select rows by getting year from MYSQL timestamp [SOLVED]
#4

[eluser]CroNiX[/eluser]
Did you try using MySQLs YEAR() function?
Code:
$this->db->where('YEAR(timestamp)', $year);


Messages In This Thread
Select rows by getting year from MYSQL timestamp [SOLVED] - by El Forum - 01-10-2013, 04:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB