Hi ..
I am inserting some data in mysql DB day by day using CURDATE () function , and inserting id's (s_id) in that day.
For instance, I have these values in a mysl DB:
+-------+-----+-----+----------+---------
| t_id | max | min | time | s_id |
+-------+-----+-----+----------+---------
| 1 | 15 | 12 | 2003-01-30 | 1 |
| 2 | 17 | 15 | 2003-01-30 | 2 |
| 3 | 30 | 18 | 2003-01-30 | 3 |
| 4 | 30 | 21 | 2003-01-30 | 4 |
| 5 | 5 | 2 | 2003-01-31 | 1 |
| 6 | 7 | 5 | 2003-01-31 | 2 |
| 7 | 9 | 8 | 2003-01-31 | 3 |
| 8 | 16 | 11 | 2003-01-31 | 4 |
| 9 | 18 | 12 | 2003-02-01 | 1 |
| 10 | 25 | 15 | 2003-02-01 | 2 |
| 11 | 30 | 17 | 2003-02-01 | 3 |
| 12 | 28 | 16 | 2003-02-01 | 4 |
+-------+-----+-----+----------+---------
How could I wrtie php sript which could fetch me all data by the latest month and date from DB.
I would appreciate some help.
Thanks