Closed Thread
Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22

Thread: php/html copyright year code

  1. #16
    Chairman/CEO TMCG GeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really nice
    Join Date
    Jan 2005
    Location
    Virginia
    Posts
    2,611
    Quote Originally Posted by wswd View Post
    There can't be HTML code for it, as HTML is static. You need some dynamic language for inserting dynamic content.
    Yeah, I think that is what the hostgator tech was saying before my cell cut off. Unfortunately, that is nothing but GREEK to me!

  2. #17
    Junior Member EagleAndPirate is an unknown quantity at this point
    Join Date
    Feb 2012
    Posts
    6

    Here you go.

    Dare using Javascript oO
    HTML Code:
    <script>
    &copy; 2011-
    <script type="text/javascript">
    var curdate = new Date()
    var year = curdate.getFullYear()
    document.write(year)
    </script>

  3. #18
    It gets better. Dynash has a brilliant futureDynash has a brilliant futureDynash has a brilliant futureDynash has a brilliant futureDynash has a brilliant futureDynash has a brilliant futureDynash has a brilliant futureDynash has a brilliant futureDynash has a brilliant futureDynash has a brilliant futureDynash has a brilliant future
    Join Date
    Jan 2008
    Location
    United Kingdom
    Posts
    4,534
    Easier:

    Code:
    <p>Copyright &copy; 2011 - <?php echo date('Y'); ?></p>
    JavaKrypt

    "If you think education is expensive. You should see the cost of ignorance."

  4. #19
    Chairman/CEO TMCG GeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really nice
    Join Date
    Jan 2005
    Location
    Virginia
    Posts
    2,611
    Quote Originally Posted by Dynash View Post
    Easier:

    Code:
    <p>Copyright © 2011 - <?php echo date('Y'); ?></p>
    that is what I tried before.

  5. #20
    Junior Member happyman is an unknown quantity at this point
    Join Date
    Nov 2011
    Location
    Barcelona
    Posts
    26
    This thread is the funniest thing I've read tonight, made me chuckle from top to bottom (of the thread) & glad it all got sorted out

    &copy; 2012 - <?php html/php - it's all the same nonsense!!! lol ?>
    happy cheap hotel Barcelona - find the cheapest hotels in Barcelona
    Barcelona City Guide & Metro Map - FREE pocket sized and printer friendly
    Yoga Therapy & Terapia de Movimiento - Svastha Yoga in Barcelona

  6. #21
    FWS Addict sarmth is a glorious beacon of lightsarmth is a glorious beacon of lightsarmth is a glorious beacon of lightsarmth is a glorious beacon of lightsarmth is a glorious beacon of lightsarmth is a glorious beacon of lightsarmth is a glorious beacon of light sarmth's Avatar
    Join Date
    Apr 2010
    Location
    Western Australia (Perth)
    Posts
    589
    You can use Javascript, but that only draws upon the date and time information of the Client Computer. Otherwise, the example provided by Decker is quite adequate.

  7. #22
    This one is quite easier <p>Copyright &copy; 2011 - <?php echo date('Y'); ?></p>

Closed Thread

Similar Threads

  1. Need help with HTML code?
    By jennyjackson in forum Webdesign / HTML
    Replies: 4
    Last Post: April 29th, 2011, 06:41
  2. cant do html code stuff
    By monkeyboy900 in forum Webdesign / HTML
    Replies: 1
    Last Post: January 30th, 2007, 13:03
  3. Footer Html Code
    By Chris L. in forum Programming Help
    Replies: 9
    Last Post: November 17th, 2005, 22:17
  4. How do I do code snipplets in HTML?
    By Archbob in forum Webdesign / HTML
    Replies: 7
    Last Post: April 8th, 2003, 00:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts