Jump to content

[SOLVED] mysql selecting specified month and year using php


PyraX

Recommended Posts

if your date is in a unix time stamp use the mktime functions to get you a string formatted the right way and then say

WHERE Date > $start && Date < $end

where $start = beginning of the year in unix seconds (or month)

and $end = end of year in unix seconds

thats fine, do you understand the date() functions in php if not look em up on php.net or w3schools.org has a very nice reference table of the flags for date returns all you have to do is say mktime() using $_GET['month'] as the month and $_GET['year'] as the year

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.