About date comparison... I want to retrieve the date type from the database field as date, and then obtain the current date for comparison. if the current date is greater than the date in the database, true is returned; otherwise false is returned. & nbsp; I found some information on the internet and found that it was not feasible .. Help... ------ Solution -------------------- PHPcodeif (strtotime ($ data [date]) about date comparison...
I want to extract the date type from the database field as date, and then obtain the current date for comparison. if the current date is greater than the date in the database, true is returned. otherwise, false is returned.
I found some information on the internet and found that it was not feasible .. Help...
------ Solution --------------------
PHP code
If (strtotime ($ data ['Date'])-time ()> 0) return true; else return false;