I have a database table from which I'd like to pull a single row each day. Unfortunately, I need to rotate these records each day. In other words, I need to start the cycle over every 30 days (there are 30 records).
e.x.
Records: 1, 2, 3, 4, 5
They should appear in this order, one per day: 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, etc.
Any ideas?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community