It works when it's just if and else, however, when I add elsif to it the if gets ignored and elseif takes over, even though there's a valid payment there. Can someone tell me what is wrong with this statement?
if ($row['receivedat'] > date("Y-m-d H:i:s", strtotime('-2 minutes'))) {
echo 'Payment found';
} elseif ($row['receivedat'] < date("Y-m-d H:i:s", strtotime('-2 minutes'))) {
echo 'No payment found';
} else {
echo 'Try again';
}
Aucun commentaire:
Enregistrer un commentaire