Blani Posted September 7, 2008 Posted September 7, 2008 This is my error: Parse error: syntax error, unexpected T_STRING in /home/tlalley/public_html/includes/languages/english/shipping.php on line 31 This is what the page is now: <?php/* $Id: shipping.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Shipping & Returns'); define('HEADING_TITLE', 'Shipping & Returns'); define('TEXT_INFORMATION', 'No pick up or delivery on Thanksgiving Day Thursday, November 27 Only overnight air pickup on the day after Thanksgiving Friday, November 28 Last day to ship ground for delivery on Wednesday, November 26 is Wednesday, November 19 No pick up or delivery on Christmas Day Thursday, December 25 Last day to ship ground for delivery on Wednesday, December 24 is Tuesday, December 16 No pick or delivery on Thursday, January 1, 2009 Only overnight air pickup on New Years Eve Wednesday, December 31 Last day to ship ground to arrive on Tuesday, December 30 is Friday, December 19 Returns Policy Company will honor returns to its Returns Center for up to 15 days from the original shipment date during which time Merchant or Merchant's customer can return a gift for any reason.'); ?> do you see any thing obvious? I can not locate my backup for this page shipping.php And can you add breaks <br> in this code? and <b> ?
Blani Posted September 7, 2008 Author Posted September 7, 2008 This is my error:Parse error: syntax error, unexpected T_STRING in /home/tlalley/public_html/includes/languages/english/shipping.php on line 31 This is what the page is now: do you see any thing obvious? I can not locate my backup for this page shipping.php And can you add breaks <br> in this code? and <b> ? I fixed it :) and yes you can use html codes.
♥geoffreywalton Posted September 7, 2008 Posted September 7, 2008 For other searchers, you need to escape the ' in the text otherwise php thinks it has come to the end of the string. Merchant's should be Merchant\'s Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
solotiger Posted September 12, 2008 Posted September 12, 2008 For other searchers, you need to escape the ' in the text otherwise php thinks it has come to the end of the string. Merchant's should be Merchant\'s its going to take forever doing it like that? is there any other way? Thanks!!
♥geoffreywalton Posted September 13, 2008 Posted September 13, 2008 Why does it take forever? Do you have thousand of single quotes? In the above example takes a matter of seconds to correct and upload. Then in future, now you know, escape characters as you input them. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Guest Posted September 13, 2008 Posted September 13, 2008 its going to take forever doing it like that? is there any other way?Thanks!! Strange statement, how are you editing your files? You do realise that it is the apostrophe that needs to be escapde?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.