?
Solved

problem selecting records greater than now

Posted on 2010-11-23
2
Medium Priority
?
474 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 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses
Course of the Month14 days, 10 hours left to enroll

840 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