Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PLEASE HELP!


Guest

Recommended Posts

Can anyone out there tell me PLEASE PLEASE PLEASE where the parse error in this 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 © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN', 'Thank you for the visiting the online home of Mantis Field Hockey! As North America's premier field hockey equipment supplier, we offer the top field hockey equipment available from around the world. We tailor our product line to meet the demands of athletes at every level of play, from beginner to the international stage. Whatever your playing needs may be, Mantis Hockey has the equipment and expertise to help you take your game to the next level.<br>

 

<br>Mantis Hockey is the exclusive North American distributor of Voodoo field hockey equipment, and the exclusive Canadian distributor of Gryphon field hockey equipment. The vast majority of the best international players from around the globe now play with Gryphon and Voodoo, as they are simply unrivaled in both quality and on-field performance. We now have in stock the 2008 Gryphon and Voodoo product lines, which are selling out quickly!<br>

 

<br>Mantis offers an expertise to our customers that our competition simply cannot. We tailor our product line to meet the demands of athletes at every level of play. At Mantis, we are 100% committed to delivering quality, on-time field hockey products and services to our customers. From equipment sales to clothing sales and beyond, Mantis is your one-stop-shop for everything field hockey! Trust your game to Mantis Hockey!</p>

 

=================

 

I'm getting this error message:

 

Parse error: parse error, unexpected T_STRING on line 13

Link to comment
Share on other sites

well the obvious one is that you have not closed the statment.

 

Trust your game to Mantis Hockey!</p>

 

should be

 

Trust your game to Mantis Hockey!</p>');

 

also just noticed the same as the above post.

 

America's

 

should be

 

America\'s

 

Aran

Link to comment
Share on other sites

As pointed out by Coopco the syntax that MUST be available is

define('TEXT_MAIN', ' ');

 

Read, and re read each sentence and modify every single apostrophe with an escape character ie,

Replace America's with America\'s.

 

Easy way to fix is to take away entire paragraphs eg.

1. Test with define('TEXT_MAIN', ' Thank you for the visiting the online home of Mantis Field Hockey');

Unless there is any other error on the sheet, this would certainly work.

Next add another sentence

 

2. define('TEXT_MAIN', ' Thank you for the visiting the online home of Mantis Field Hockey! As North America\'s premier field hockey equipment supplier, we offer the top field hockey equipment available from around the world. We tailor our product line to meet the demands of athletes at every level of play, from beginner to the international stage. Whatever your playing needs may be, Mantis Hockey has the equipment and expertise to help you take your game to the next level.');

 

... carry on with each paragraph at a time till you get everything right. For the moment it is only America's that is causing the issue though .. but i hope this may help others who often get parse errors due to missing escape character in their defines.

 

Cheers

Best Regards,
Gaurav

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...