problem selecting records greater than now

Posted on 2010-11-23
Medium Priority
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.

// 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
Question by:debbieau1
LVL 58

Accepted Solution

cyberkiwi earned 2000 total points
ID: 34201551
if (strtotime($row_rstest['followup']) > strtotime("now")){

Author Closing Comment

ID: 34201674

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

622 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