Just create a DB table to store the current voucher number and the date. On every submit you :
- Check if the date is today's date. If not you reset the voucher number
- Increment it
And try a little research before asking next time.
Domanda
I am making a fees collecting module for a college in php, On submit, I want to echo voucher number, every time the voucher number should be +1 to previous voucher. And every day the voucher number should start from 1.
Soluzione
Just create a DB table to store the current voucher number and the date. On every submit you :
And try a little research before asking next time.