cheazygoya Posted May 29, 2008 Share Posted May 29, 2008 Hello all, Can anyone help me out? The script snippet below is not working. All I need to do is create an auto-update copyright script. <tr> <td> <table width="780" border="0" cellspacing="0" cellpadding="0" background="images/tbg.gif"> <tr> <td width="6"><img src="images/tbg.gif" width="6" height="32"></td> <td width="100%" align="center"><font size="1"><b> <font face="Tahoma, Verdana" color="white"> <script type="text/php"><?php print "Copyright ⓒ 2002-".date('Y')."". "ebilling works llc. All rights reserved";?></font></b></font></td> <td width="31" align="center"> <img src="images/ttbg.gif" width="31" height="32"> </td> </tr> Thanks Link to comment https://forums.phpfreaks.com/topic/107825-php-copyright-script-help/ Share on other sites More sharing options...
xoligy Posted May 29, 2008 Share Posted May 29, 2008 I have this for mine: <?php $year = date("Y"); ?> <b><? echo $sitetitle ?> © <? echo $startyear ?> - <?=$year?> All Rights Reserved.</b> Link to comment https://forums.phpfreaks.com/topic/107825-php-copyright-script-help/#findComment-552746 Share on other sites More sharing options...
soycharliente Posted May 29, 2008 Share Posted May 29, 2008 When you say it's not working, we don't know what that means. You didn't give us a link to look at or say what it's doing. What is it showing you? What do you want it to show you? Are you getting errors? What are they? All of that information is VERY relevant for us to give you an answer. Link to comment https://forums.phpfreaks.com/topic/107825-php-copyright-script-help/#findComment-552750 Share on other sites More sharing options...
cheazygoya Posted May 29, 2008 Author Share Posted May 29, 2008 When you say it's not working, we don't know what that means. You didn't give us a link to look at or say what it's doing. What is it showing you? What do you want it to show you? Are you getting errors? What are they? All of that information is VERY relevant for us to give you an answer. I tried to make a php script that would auto-update the year, Nothing appears at the bottom of the browser, and there are no errors. This is how I would like the bottom of the page to read: Copyright ⓒ 2002 - 2008, ebilling works llc. All rights reserved This is the script I wrote, but nothing at all appears at the bottom of the screen <?php print "Copyright ⓒ 2002-".date('Y')."". "ebilling works llc. All rights reserved";?> Link to comment https://forums.phpfreaks.com/topic/107825-php-copyright-script-help/#findComment-552890 Share on other sites More sharing options...
FlyingIsFun1217 Posted May 29, 2008 Share Posted May 29, 2008 Why not just add it to your footer, assuming you are using one? FlyingIsFun1217 Link to comment https://forums.phpfreaks.com/topic/107825-php-copyright-script-help/#findComment-552913 Share on other sites More sharing options...
discomatt Posted May 29, 2008 Share Posted May 29, 2008 <script type="text/php"> Remove that. It's not even closed later on, so you don't have to remove a /script. Link to comment https://forums.phpfreaks.com/topic/107825-php-copyright-script-help/#findComment-552949 Share on other sites More sharing options...
soycharliente Posted May 29, 2008 Share Posted May 29, 2008 what happens when you do this? <?php echo "Copyright © 2002 - " . date("Y") . ", ebilling works llc. All rights reserved"; ?> Link to comment https://forums.phpfreaks.com/topic/107825-php-copyright-script-help/#findComment-552983 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.