I have several names and dates in my database, and I am looking for a way to only view an individual's name once and only show that name if their last date of contact was more than 6 months ago.
I know how to view an entry only once using:
$xyz= $db->query("SELECT * FROM dbname GROUP BY name");
and i also know how to view a date of less than 6 months using:
if (strtotime($xyz['date']) <= strtotime("-6 months")) {
do stuff;
}
but I just can not figure out a way to combine them.