Solved

problem selecting records greater than now

Posted on 2010-11-23
2
460 Views
Last Modified: 2013-12-13
I need to check if a date for the record being displayed is later than the current date and time.

<?php
// Show IF Conditional region7
if (date("Y-m-d H:i", strtotime($row_rstest['followup'])) > date("Y-m-d H:i", strtotime(NOW))){
?>
                    this is greater
  <?php }
// endif Conditional region7
?>

The above is what I have at the moment which is not working.

I would appreciate some help with this please
0
Comment
Question by:debbieau1
2 Comments
 
LVL 58

Accepted Solution

by:
cyberkiwi earned 500 total points
ID: 34201551
if (strtotime($row_rstest['followup']) > strtotime("now")){
0
 
LVL 1

Author Closing Comment

by:debbieau1
ID: 34201674
thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now