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

Thread: php/html copyright year code

  1. #16
    Chairman/CEO TMCG
    Join Date
    Jan 2005
    Location
    Virginia
    Posts
    2,651
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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!
    GeorgeB
    www.instantrewards4you.com EARN $20 TO $70 PER REFERRAL PAID DAILY INTO PAYPAL| www.viprecycling.com JUNK REMOVAL CO.| www.kgbeale.com ONLINE AUCTION SITE WITH NO LIMITS AND CHEAPER FEES |

  2. #17
    Junior Member
    Join Date
    Feb 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.
    Join Date
    Jan 2008
    Location
    United Kingdom
    Posts
    4,568
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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
    Join Date
    Jan 2005
    Location
    Virginia
    Posts
    2,651
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dynash View Post
    Easier:

    Code:
    <p>Copyright  2011 - <?php echo date('Y'); ?></p>
    that is what I tried before.
    GeorgeB
    www.instantrewards4you.com EARN $20 TO $70 PER REFERRAL PAID DAILY INTO PAYPAL| www.viprecycling.com JUNK REMOVAL CO.| www.kgbeale.com ONLINE AUCTION SITE WITH NO LIMITS AND CHEAPER FEES |

  5. #20
    Junior Member
    Join Date
    Nov 2011
    Location
    Barcelona
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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's Avatar
    Join Date
    Apr 2010
    Location
    Western Australia (Perth)
    Posts
    661
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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.
     Lead Developer / Scrum Master 
    Specialty Skills include C#, PHP, Visual Basic, Unity3D, DNS, API Integration, jQuery, Twitter Bootstrap, CSS3, HTML5.

  7. #22
    b&
    Join Date
    Apr 2012
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This one is quite easier <p>Copyright &copy; 2011 - <?php echo date('Y'); ?></p>

Similar Threads

  1. Need help with HTML code?
    By jennyjackson in forum Webdesign / HTML
    Replies: 4
    Last Post: April 29th, 2011, 07:41
  2. cant do html code stuff
    By monkeyboy900 in forum Webdesign / HTML
    Replies: 1
    Last Post: January 30th, 2007, 14:03
  3. Footer Html Code
    By Chris L. in forum Programming Help
    Replies: 9
    Last Post: November 17th, 2005, 23:17
  4. How do I do code snipplets in HTML?
    By Archbob in forum Webdesign / HTML
    Replies: 7
    Last Post: April 8th, 2003, 01: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
  •