how do i compare the current date to a date field in my databasee.g.$current_date = date('Y=m-d');$dbdate = pg_result($rsdate,0,"exam_date");if ($current_date>$dbdate) --THIS PART DOESNT WORK echo "Today is not your exam date";TIA