I want to produce a page that has past and future gigs.
I want the user to add the gig and this is then added to a file, all the info is entered into a file including the date of the gig.
I was wondering whether I could compare the date in the file with the current date. Also how would I do that. Is it something like this (as an example).
Code: Select all
if($date<=date();){
print in future gig
}else{
print in past gigs
}