![]() |
php mysql month function?!!
I want to create php code to only display user to view only entries from a particular month, can anybody help me!!
this is the code i used; its not working .. can any1 fix it up. php Code:
|
It would appear as though the
MONTH() function returns it without the preceding zero and so it would be like the following:sql Code:
Try setting your $get_month variable to (int) 3.Edit: I've also noticed you've not used the AND keyword between the username and date clauses, instead you've used a comma. This will simply cause MySQL to throw an error. |
Thanks
Thank you v much thank u vv much,, it worked
|
| All times are GMT. The time now is 01:02 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0