From: Joseph Syjuco <joseph@asti.dost.gov.ph>
To: PHP-PGSQL <pgsql-php@postgresql.org>
Subject: comparing dates
Date: 05 Jul 2002 16:33:29 -0400
Message-ID: <1025901211.1846.73.camel@Askr> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: joseph@asti.dost.gov.ph
Subject: Re: comparing dates
In-Reply-To: <1025901211.1846.73.camel@Askr>
References: <1025901211.1846.73.camel@Askr>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox