Re: Hi How to compare two dates using PHP which are from mysql database?

From: Date: Tue, 12 Mar 2002 13:38:27 +0000
Subject: Re: Hi How to compare two dates using PHP which are from mysql database?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88194@lists.php.net to get a copy of this message
Why not compare them in the SQL Query itself? Jason Lotito www.newbienetwork.net ----- Original Message ----- From: "Balaji Ankem" <balaji.ankem@wipro.com> To: "'Jan Rademaker'" <janr@486.yi.org> Cc: "Php-General" <php-general@lists.php.net> Sent: Tuesday, March 12, 2002 8:37 AM Subject: RE: [PHP] Hi How to compare two dates using PHP which are from mysql database? > Hi Jan, > I want to compare the DTAETIME1,DATETIME2 which are from mysql > table and want to compare in PHP. > But strtotime takes only one argument and it checks whether it > is valid or not. > > Balaji > > -----Original Message----- > From: Jan Rademaker [mailto:janr@486.yi.org] > Sent: Tuesday, March 12, 2002 6:40 PM > To: Balaji Ankem > Cc: Php-General > Subject: Re: [PHP] Hi How to compare two dates using PHP which are from > mysql database? > > > On Tue, 12 Mar 2002, Balaji Ankem wrote: > > http://www.php.net/manual/en/function.strtotime.php > > you can compare the results with > < =, etc... > > > Hi, > > I would like to compare the two dates (including time stamp) > using > > php. > > Is it possible? > > > > Any help would be apprciable. > > > > Thanks in advance > > Balaji > > > > > > -- > Jan Rademaker <janr@486.yi.org> > http://www.ottobak.com > > > ---------------------------------------------------------------------------- ---- > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#88194) next »