i'm trying to make a script to calculate the diference between two dates, but in minutes, the thing is that i need to remove from mysql database all the entries that has mora than 15 minutes on the database, i'm planing to run the script in background using the cron jobs, but the main problem is that i don't know how to get the minutes from the two dates, i tried using
$mins = date_diff(date("Y-m-d H:i:s"), $rows["hora"]);
but the php told that the first parameter is a string
any help will be very appreciatted
thanks in advanced for all the help.