MYSQL and UNIX timestamps... |
[eluser]mddd[/eluser]
You have to stop treating the date as a piece of text. Use the Date/time functions of Mysql. They are made for this. http://dev.mysql.com/doc/mysql/en/date-a...tions.html Examples: Code: // get all events in april 2010 To use functions in CodeIgniter, you should turn of the escaping of field names. Like so: Code: // this example does the same as the first query above here |
Welcome Guest, Not a member yet? Register Sign In |