fairycake2008 Posted September 27, 2009 Posted September 27, 2009 Please could someone help. I wanted to update the home pageon my website and some other details. This worked fine for some pages but, I must have something missed in PHP Parse error: syntax error, unexpected T_STRING in /hermes/web04/b1615/pow.rhodgkiss2001/htdocs/includes/languages/english/index.php on line 16 Here is my code: <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'Hi thanks for stopping by...<p> <i>Sugar and Spice</i> Cupcakes have become my passion. I have been concentrating on baking and tasting a selection of cakes with a grown up feel. Delicious and tempting flavours provide the perfect treat for yourself or to give as a gift.<br> Nothing comes out of the kitchen that hasn't been thoroughly tested and approved. Great attention to detail is given to ensure that each cake is worthy of 'desert' status. Keep watching for further website updates and where you will be able to find me. <p><p> My Cupcakes can be bought in larger quantities where I look forward to making your celebration an extra special one. All enquiries can be made direct to Sugar and Spice using the <b>contact us</b> at the bottom of the page. Or email [email protected]</b> <br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><td class="main" valign="top"> '); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'What have we got for you here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'Sugar and Spice new Creations'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Many thanks
germ Posted September 27, 2009 Posted September 27, 2009 Nothing comes out of the kitchen that hasn\'t been thoroughly tested and approved. Great attention to detail is given to ensure that each cake is worthy of \'desert\' status. Keep watching for further website updates and where you will be able to find me. Apostrophe's inside defines must be "escaped" as shown. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
fairycake2008 Posted September 27, 2009 Author Posted September 27, 2009 Hi Thanku so much. I fear I have done the same in 'About Us' Parse error: syntax error, unexpected T_STRING in /hermes/web04/b1615/pow.rhodgkiss2001/htdocs/includes/languages/english/about_us.php on line 13 <?php /* $Id: conditions.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', About Us'); define('HEADING_TITLE', 'About Us'); define('TEXT_INFORMATION', 'About Us <br> '\'Hi, welcome to my dream.<br> Sugar and Spice was born out of my love of all things different and definitly gorgeous smelling :-) I have been making all sorts of things for as long as I can remember. Then 2 children later and I decided to give it a go professionally. Coming from an IT and Customer Service background has really helped, first of all in creating this website and secondly because I know just how important Customer Service is. I am constantly searching for new and exciting ideas and love adding new products to the website portfolio. Be sure to add me to your favourites list and sign up to the newsletter to make sure you are in the know. <p> '); ?>
germ Posted September 27, 2009 Posted September 27, 2009 \'Hi, If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
fairycake2008 Posted September 27, 2009 Author Posted September 27, 2009 Hi Thanku so much. I fear I have done the same in 'About Us'Parse error: syntax error, unexpected T_STRING in /hermes/web04/b1615/pow.rhodgkiss2001/htdocs/includes/languages/english/about_us.php on line 13 <?php /* $Id: conditions.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', About Us'); define('HEADING_TITLE', 'About Us'); define('TEXT_INFORMATION', 'About Us <br> '\'Hi, welcome to my dream.<br> Sugar and Spice was born out of my love of all things different and definitly gorgeous smelling :-) I have been making all sorts of things for as long as I can remember. Then 2 children later and I decided to give it a go professionally. Coming from an IT and Customer Service background has really helped, first of all in creating this website and secondly because I know just how important Customer Service is. I am constantly searching for new and exciting ideas and love adding new products to the website portfolio. Be sure to add me to your favourites list and sign up to the newsletter to make sure you are in the know. <p> '); ?>
fairycake2008 Posted September 27, 2009 Author Posted September 27, 2009 thanks again. I removed the quote and the error was the same. I don't actually need the ' before Hi but, this still has not worked <?php /* $Id: conditions.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', About Us'); define('HEADING_TITLE', 'About Us'); define('TEXT_INFORMATION', 'About Us <br> Hi, welcome to my dream.<br> Sugar and Spice was born out of my love of all things different and definitly gorgeous smelling :-) I have been making all sorts of things for as long as I can remember. Then 2 children later and I decided to give it a go professionally. Coming from an IT and Customer Service background has really helped, first of all in creating this website and secondly because I know just how important Customer Service is. I am constantly searching for new and exciting ideas and love adding new products to the website portfolio. Be sure to add me to your favourites list and sign up to the newsletter to make sure you are in the know. <p> '); ?>
satish Posted September 27, 2009 Posted September 27, 2009 if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { its closing bracket is missing. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
germ Posted September 27, 2009 Posted September 27, 2009 Nothing wrong with the last file you posted. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
fairycake2008 Posted September 27, 2009 Author Posted September 27, 2009 Nothing wrong with the last file you posted. hmm it still says there is an error on line 13
fairycake2008 Posted September 27, 2009 Author Posted September 27, 2009 thank you so much I fixed it....
Recommended Posts
Archived
This topic is now archived and is closed to further replies.