jeudi 29 novembre 2018

Show all the data from the given date through php condition

I am generating a data from the database to html table using php. I want to output with php condition using the student joining date.

I want to run a condition where you take the j.date and anything before should have - and after should have a 'Pay' button which holds the studentid

+---------+------------+-----+-----+------+------+------+-----+
| Student |   J.date   | Jan | Feb | Mar  | Apr  | May  | ... |
+---------+------------+-----+-----+------+------+------+-----+
| John    | 25-03-2018 |   0 |   0 | 2000 |    0 | 1750 | ... |
| Michael | 10-04-2018 |   0 |   0 |    0 | 5000 |    0 | ... |
+---------+------------+-----+-----+------+------+------+-----+

Something like this

+---------+------------+-----+-----+------+------+------+-----+
| Student |   J.date   | Jan | Feb | Mar  | Apr  | May  | ... |
+---------+------------+-----+-----+------+------+------+-----+
| John    | 25-03-2018 |   - |   - | 2000 | Pay  | 1750 | ... |
| Michael | 10-04-2018 |   - |   - |    - | 5000 | Pay  | ... |
+---------+------------+-----+-----+------+------+------+-----+

Aucun commentaire:

Enregistrer un commentaire