Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: syntax error, unexpected T_STRING


Guest

Recommended Posts

I am a newbie to this wonderful world of osCommerce and the programming involved, any help would be most welcome. I am changing the text on the front page of my new market.

 

Here is the error:

 

>>Parse error: syntax error, unexpected T_STRING in /home/ttmusa2/public_html/market/includes/languages/english/index.php on line 13

 

And here is the code:

 

line 1 <?php

line 2 /*

line 3 $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

line 4

line 5 osCommerce, Open Source E-Commerce Solutions

line 6 http://www.oscommerce.com

line 7

line 8 Copyright © 2003 osCommerce

line 9

line 10 Released under the GNU General Public License

line 11 */

line 12

line 13 define('TEXT_MAIN', 'Welcome to Tam Tam Mandingue USA's new online store.<p>

line 14

line 15 Please have a look around, and we hope you enoy the new features available as well as the new products. This new

line 16 interface will allow us to ultimately serve you better.</p><p>

 

 

Please help, I am certain that there is an easy fix, and I just do not know it yet.

Link to comment
Share on other sites

line 13 define('TEXT_MAIN', 'Welcome to Tam Tam Mandingue USA's new online store.<p>

Hey mate. You need to escape (prefix with a backslash) any apostrophes in the text, otherwise it confuses the compiler.

 

So it would become:

 

define('TEXT_MAIN', 'Welcome to Tam Tam Mandingue USA\'s new online store.<p>

Link to comment
Share on other sites

Thx, I knew it was something silly. I'm just discovering all this on my own, no guides except for you lovlies.

 

Again thx

 

Hey mate. You need to escape (prefix with a backslash) any apostrophes in the text, otherwise it confuses the compiler.

 

So it would become:

 

define('TEXT_MAIN', 'Welcome to Tam Tam Mandingue USA\'s new online store.<p>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...