Hi!
In the past few years I’m getting better and better at PHP programming, and I feel I can do alot with it now. I haven’t learnt it in school, but by myself.
I’m now working on a project I started. A database based stuff for our family business, a video library. It can do alot now, and I worked quite hard on it. And I’ve arrived to a difficult piece.
I have to count the money for the movies which are arrived back late to us. And I have to count the days of the expired lendings, so I’mhaving a though time.
I save the lending date and in a mysql table (5 colums year, month, day, hour and minutes)…
I need to count that how many days have passed since the particular date I’ve stored in the database. And I’m having a hard time count which moinths have 30 or 31 days or when february has 28 or 29.
I’m asking you if there is any piece of code or a function in php or maybe javascript which can count the days from a certain date to another (which will mostly be the present date and time).
I hope someone could help me with that. And Please forgive me for my bad english!