I asked "How to determin date below todays date from db in php" in my last post and it was helpful. Now i need help on how to alert administrator when drugs date in db remain 60 day to expire. todays date is date('Y-m-d') and from db I have 2016-12-20
.
DB sample
+----+----------+--------+------------+
| id | drug_nam | amount | exp |
+----+----------+--------+------------+
| 1 | M and T | 200 | 2018-02-10 |
| 2 | VIT C | 20 | 2016-12-30 |
| 3 | Pana | 10 | 2017-01-18 |
| 4 | Lonat | 1200 | 2018-02-20 |
| 5 | ProC | 100 | 2017-06-10 |
+----+----------+--------+------------+
please I need way out on how I can count date remain 60 day to expire using mysqli.