Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can someone help with parse error


Jamy

Recommended Posts

Im getting a parse error on line 11 but I dont see where the problem is.. Can anyone (Im sure someone way smarter than I) see what the problem is?

<?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 (c) 2003 osCommerce

?Released under the GNU General Public License
*/ define('TEXT_MAIN', '<font color="#E65176" size="6" face="Arial Narrow"><b>Welcome to Scrap Spot's</b></font></p>
<p><font color="#E65176" size="6" face="Arial Narrow"><b>Grand Opening! </b></font></p>
<p><b><font color="#E65176" face="Arial Narrow" size="3">All orders placed on
August 20th are eligible to <br>
receive 10% off your entire order! <br>
(taxes and shipping not included) </font></b></p>
<p><b><font color="#E65176" face="Arial Narrow" size="3">If you are an Ohio
resident, please be sure to select<br>
the correct county when registering. (This is how your<br>
taxes will be calculated) </font></b></p>
<p><b><font color="#E65176" face="Arial Narrow" size="3">During checkout, you
will need to place the code <br>
</font><font color="#E65176" face="Arial Narrow" size="3"> ? ? ? ? ? ? ? ? ? ? ? ? ? 
</font><font color="#E65176" face="Arial Narrow" size="5">Grand10<br>
</font><font color="#E65176" face="Arial Narrow" size="3">into the coupon code
box and click redeem to get your<br>
10% discount. <br>
<br>
Thank you for visiting Scrap Spot. Enjoy your shopping. </font></b></p>
');

Link to comment
Share on other sites

Im getting a parse error on line 11 but I dont see where the problem is.. Can anyone (Im sure someone way smarter than I) see what the problem is?

<?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 (c) 2003 osCommerce

?Released under the GNU General Public License
*/ define('TEXT_MAIN', '<font color="#E65176" size="6" face="Arial Narrow"><b>Welcome to Scrap Spot's</b></font></p>
<p><font color="#E65176" size="6" face="Arial Narrow"><b>Grand Opening! </b></font></p>
<p><b><font color="#E65176" face="Arial Narrow" size="3">All orders placed on
August 20th are eligible to <br>
receive 10% off your entire order! <br>
(taxes and shipping not included) </font></b></p>
<p><b><font color="#E65176" face="Arial Narrow" size="3">If you are an Ohio
resident, please be sure to select<br>
the correct county when registering. (This is how your<br>
taxes will be calculated) </font></b></p>
<p><b><font color="#E65176" face="Arial Narrow" size="3">During checkout, you
will need to place the code <br>
</font><font color="#E65176" face="Arial Narrow" size="3"> ? ? ? ? ? ? ? ? ? ? ? ? ? 
</font><font color="#E65176" face="Arial Narrow" size="5">Grand10<br>
</font><font color="#E65176" face="Arial Narrow" size="3">into the coupon code
box and click redeem to get your<br>
10% discount. <br>
<br>
Thank you for visiting Scrap Spot. Enjoy your shopping. </font></b></p>
');

 

Spot's -> Spot\'s

Treasurer MFC

Link to comment
Share on other sites

Hi,

 

A couple of things spring to mind here... I don't like the fact that your define starts on the same line as the closing quote of the commented out section, marked by: */ ,so I would put a return in there.

 

Also, you have an apostrophe in your text here:

 

Welcome to Scrap Spot's ....

 

so you need to escape that with a backslash as follows:

 

Welcome to Scrap Spot\'s ....

 

to avoid prematurely terminating the string.

 

Cheers,

 

 

 

 

Mark

Link to comment
Share on other sites

Ive done both of those but it still says there is a parse error.

 

I have figured out that I should not be trying to edit this file in the OSC file manager.

 

Since I am a moron and did not save the original before editting, can someone post the original code for the index.php file? :blush:

Link to comment
Share on other sites

can someone post the original code for the index.php file?? :blush:

No you're no moron. You figured out that the file manager is bad news.

Click here to retrieve the original file and a copy with your main text included.

 

Glad I could be of help.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...