[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

problem selecting records greater than now

Posted on 2010-11-23
2
Medium Priority
?
471 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 58

Accepted Solution

by:
cyberkiwi earned 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
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…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

656 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