Senate, just tested the following code and got it to work just fine
<?
include("config.php");
// Connect To MySQL Server
@mysql_connect($server, $username, $password) or die("Couldn't Connect to Database");
// Select Database
@mysql_select_db($database) or die("Couldn't Select Database");
$query = mysql_query("SELECT * FROM $table WHERE DATE_FORMAT(inputedon, '%M') = 'May'");
while($a_row=mysql_fetch_array($query)) {
echo "id: " . $a_row["id"] . "<br>\n";
}
?>
inputedon was the name of my timestamp field. That echo'd the id's of all the records that were inputted in May. Try it again and let me know how it goes.
On the query I posted earlier, did you replace yourtable with the name of your table, and date_d with the field name of your timestamp in the database, and format it to your needs? What exactly didn't work? Wouldn't output anything or parse error or. . . ?
Also make sure the = 'May' part is equal to a month you know is in the database. If you don't have anything in there for January, then don't do = 'January'
Well the above code is tested and works great. Let me know if you run into any problems.
Cgraz