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]))
// do somemthing
else
// do something

129 Like 34 Dislike
Previous php-forum Next php-forum
Other php-forum

how do I show what a user have selected from a checkbox?
From my code below, how would i show which check boxes have been checked and which radio buttons sel

fopen() security
As i understood the usage of fopen() for it to function correctly the Dir you write to has to be rw

update post issues
I am trying to create an update to a post function, while the update does occur, the page routing an

php unable to sent email
Hi, guys, I try to send a email through php but unfortunately the mail unable to sent. Here is my co

Re-Order by ID Number
I have a cms set up for inputting an image, thumb, title, pdf, and eps. When input the database ass

cookie problem
I hv a website url
In this site main menu functionality based on cookie when user click on parti

Prevention Help
How can I use PHP or any other language (feel free to move this thread) to prevent users doing scree

Syntax Help
I'm trying to make a form that edits a php file which contains config settings. I'm using strings t

URL Rewrite issue
Im created a series of Rewrites and on page checks to make sure the correct url is being called. But

add text and number image
hi guys ..

ok see i want the user to add their name and pick a number then click get it and i

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