Created
March 7, 2013 04:11
-
-
Save jrmadsen67/5105520 to your computer and use it in GitHub Desktop.
Get occurrences of a particular month, when using Unix timestamps in your db php construction of sql, but recreate as needed. $month & $year are integers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WHERE MONTH(FROM_UNIXTIME(cdate)) = '.$month.' AND YEAR(FROM_UNIXTIME(cdate)) = '. $year; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment