SO here what I have, im getting really confused, im trying to make an if statement where if a user posted a message in the past 10 minutes they are allowed to edit it but it 10 minutes is up then they can no longer edit it
$line_reply['submit_date'] = '2008-02-01 16:57:01';
$current_date = date("Y-m-d H:i:s");
$submit_date2 = date("Y-m-d H:i:s",strtotime("-10 minutes", strtotime($line_reply['submit_date'])));