Hello,
i work on project I want to send a length of path traversed but before that I want to check the last maximum input for the car in question.
To explain better:
- I have car that is used everyday and every day i enter start mile and finish mile (path traversed) in database.
- Next time i also entering start mile and finish mile for that day, so far i enter last finish mile manualy and wonder if there is the way that i could check last entered finish mile for the car in question.
I want to create some kind of snippet to get the last finish mile for car that i'm adding path traversed in db "select max(finish_mile) from path where car_id = " how to pass car_id in this select?
Thanks