'; $date = ''; $result = generic_sql_query(sql_recently_played(), false, PDO::FETCH_OBJ); foreach ($result as $obj) { $thisdate = date('l, jS F Y', $obj->unixtime); if ($thisdate != $date) { $date = $thisdate; print '