comparing dates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



how do i compare the current date to a date field in my database
e.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






[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux