Jump to content

[SOLVED] Issue with copyright message based on date


macattack

Recommended Posts

Hello,

 

I am making a remarkably simple error that I cannot detect in the following code:

print ("<h6>Copyright &copy 2008");
if (!date("Y") == '2008'){
	echo "-".date("Y");
                echo "test";
}
print (" <a href='mailto:[email protected]'>My Name</a>, all rights reserved.");

 

I'm trying to have it automatically display 2008-present automatically, and I added the "test" portion to see if the if statement is being properly executed — it isn't. If someone knows what I did wrong and could help me, that would be great.

 

Thanks in advance

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.