I've got a little doubt.
How I can know the timestamp from day X, about hour 00:00:00 till 23:59:59?
I guess that time()
just gives you the current timestamp, and I would need the timestamp from the beginning of a day to the final one so I could check my DB in MySQL for a moment between those times.