...

View Full Version : Not greater of equal to?



stfc_boy
02-02-2010, 11:50 AM
Hello,

I have a line of code which basically reads like so:

If the current date is inbetween a start and end date (using greater than and equal to) and live =2



if(time() >= strtotime(''.$row->starts.'') && time() <= strtotime(''.$row->ends.'') && ($row->live == 2))


But how would I make that a not statement ie If the current date is NOT inbetween a start and end date and live =2?

I just can't get it right in my head!

Thanks

hinch
02-02-2010, 11:53 AM
if(time() < strtotime(''.$row->starts.'') && time() > strtotime(''.$row->ends.'') && ($row->live == 2))

JAY6390
02-02-2010, 12:28 PM
Note that you don't need the ''. and .'' either side of your times either



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum