I have a problem here.
I am inserting a date into the database: date_last_applied .
I can simply call it using $row['date_last_applied'] , of course. Now I need to check if this added date was 30 days ago , and if so, do the action.
$query = "SELECT date_last_applied FROM applicants WHERE memberID='$id'"; $result = mysql_query($query); while($row = mysql_fetch_array($result)) { $date = strtotime($row['date_last_applied']); }
This is about everything that I have .. I tried something, but they all failed. :(
source share