Comparing two dates


Posted on 16th Feb 2014 07:03 pm by admin

Hi Guys
I have two dates I want to compare. Below is my current implementation. The problem with it is it always returns false:

if(date("d/m/y", $course->finish_date) > date("d/m/y", $today[0]))
Did you know?Explore Trending and Topic pages for more stories like this.
// do somemthing
else
// do something
No comments posted yet

Your Answer:

Login to answer
129 Like 34 Dislike
Previous forums Next forums
Other forums

Search in the PHP Files
have to search asterisk(*) in the php code of the php files .
In the html page one text box

socket makes browser hang...
I have a socket server, and I am having a problem at the moment...

A browser sends a http hea

Request for tunning the below query
Hi,

Can any one help me on the below query while improving the performance,

How to get variable value on next page
Hello friends
i am working on payentry page ..there i have this code.........

How to know if online site made with PHP
Hello,
I see some sites that does not display extensions at all , for example:

www.site.co

DateTimeZone::listIdentifiers headache
http://php.net/manual/en/datetimezone.listidentifiers.php


So the documentation states tha

Get keys and values from an array
Hellow,

I have an array $Data with keys and values. With a foreach I can display all the valu

TemplatePower & AJAX
Hi all,



I'm currently implementing some AJAX features in my PHP-framework (which is b

Wrong Info sent Using $get in form
Hi i have this code that i tried to make to send some info from one page to aother with lots of ppls

IIS & NW MII on the same server
Hi,

We're weighing the possibility to run both IIS and MII (NetWeaver) on the same server

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash