How would I compare two dates in the context of a loop?
I've got a table full of duplicates. I've been able to craft a foreach loop that accurately retrieves and displays duplicate values. But then, when I've got two duplicates to consider, I need to compare the dates and be able to give the user the opportunity to click a button that will delete the date that is the oldest.
I'm coming up short.
Here's what I've been trying:
foreach($current_list as $current)
//I've got a duplicate
echo "a rebel yell";
echo "say nothing";
It's not working. I've tried several different configurations and I'm ooen to suggests.