Hi,
I have a small problem when comparing two dates (from and to) with each of those SQL fields (date_from, date_to) with the PHP time() function.
I would like the from date not to be lower than the microtime date specified and the to date not to exceed the current time. Additionally, I have a new date period which must not exceed the to date either (let's say: new_date).
Would someone kindly shed me some lights on this ?
I have a small problem when comparing two dates (from and to) with each of those SQL fields (date_from, date_to) with the PHP time() function.
I would like the from date not to be lower than the microtime date specified and the to date not to exceed the current time. Additionally, I have a new date period which must not exceed the to date either (let's say: new_date).
Would someone kindly shed me some lights on this ?