How to sort by previous date in database?

后端 未结 4 996
孤街浪徒
孤街浪徒 2021-01-16 07:46

What I want to ask is how to select from database record and my php code able to sort previous date by date,which is what i want to display in my interface:



        
4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-16 08:02

    ("SELECT count(*), date FROM staff WHERE date < '$Current' GROUP BY date ORDER BY date asc"); 
    

    Group them up with a count, you can then write out each date the number of times indicated by the count, then write out your additional value.

提交回复
热议问题