comparing dates

From: Joseph Syjuco <joseph(at)asti(dot)dost(dot)gov(dot)ph>
To: PHP-PGSQL <pgsql-php(at)postgresql(dot)org>
Subject: comparing dates
Date: 2002-07-05 20:33:29
Message-ID: 1025901211.1846.73.camel@Askr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Dan Wilson 2002-07-08 18:16:48 Release: phpPgAdmin 2.4.2
Previous Message Keary Suska 2002-07-05 15:01:18 Re: comparing dates