Forum Moderators: coopster
Thanks for your help guys(I'm googling that timestamp thing right now too)
I'm just testing this out but basically as of Sept first, I want my form to have the year+1(eg, on Sept. 1st, 2003 i should get 2004).
This is my code for testing.
//begin code snip
<?php
$monthtemp = date("n");
$yeartemp = date("Y");
$datetemp = date("j");
if( monthtemp >= 8 )
$year = $yeartemp + 1;
else
$year = $yeartemp;
echo ($year);
?>
//end code snip
Now I'm new to php coding, but I assume it uses alot of standard coding like ">=" is greater than or equal to... and so on.
So if it's the 8th month(this is for testing cause the server time is out of my hands to change) then as of August it should give me 2004, which it's not, it's still giving me 2003.
Anyone?
thanks for the push in the right direction on the last reply