Ok, I've never used any of the date functions of MySQL or PHP. What I am currently doing is storing records in a database and tacking on a date with it. In MySQL I have the date column setup as an INT.
$date = date("Ymd");
$query = "insert into trouble_ticket(username, req_location, req_subject, req_body, req_date) values ('$username', '$location', '$subject', '$body', '$date')";
As you can see I have the date being inserted as YearMonthDate.
Ok, what I want to do is pull out all the records. BUT, All of the records with req_id = 1 I want to check and see if they are a month old or during the current month. Basically any of the records with req_id = 1 that are a month old I do not want to display, but I want to display records with req_id = 1 that are less than a month old and ALL of the req_id = 0 records.
I'm not sure if I explained that properly, but hopefully you guys can help me out.