0
Welcome Guest! Login
0 items Join Now

Copyright Year

    • Jim Bain's Avatar
    • Jim Bain
    • Rocketeer
    • Posts: 86
    • Thanks: 0
    • Website Builder

    Copyright Year

    Posted 14 years 11 months ago
    • Is there some PHP code I can insert in the template so my copyright year changes automatically.
    • Cory Webb's Avatar
    • Cory Webb
    • Jr. Rocketeer
    • Posts: 32
    • Thanks: 0

    Re: Copyright Year

    Posted 14 years 11 months ago
    • Try this...

      Whereever you want to display your copyright year, put the following code:
      <?php echo date("Y"); ?>

      That will display the 4-digit year associated with today's date.  For example, if today's date is February , 2006, the code will return "2006".  If it is January 1, 2007, the code will return "2007"  I hope this helps.
    • Last Edit: 14 years 11 months ago by Cory Webb.
    • Lee's Avatar

    Re: Copyright Year

    Posted 14 years 11 months ago
    • Cory Webb wrote:
      Try this...

      Whereever you want to display your copyright year, put the following code:
      <?php echo date("Y"); ?>

      That will display the 4-digit year associated with today's date. For example, if today's date is February , 2006, the code will return "2006". If it is January 1, 2007, the code will return "2007" I hope this helps.

      That is a nice script. I must use that! Cheers
    • Jim Bain's Avatar
    • Jim Bain
    • Rocketeer
    • Posts: 86
    • Thanks: 0
    • Website Builder

    Re: Copyright Year

    Posted 14 years 11 months ago
    • Perfect. That was exactly what I was looking for.

Time to create page: 0.137 seconds