I need to create a PHP application that reads the date of a column within the database in MYSQL and compares with today's date, after comparing it should print the difference of days.
Example: The bank contains the following date: 2017-08-31, in the 'dates' column. As today is 2017-09-28, he would have to return me 29 days .