Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

need help editing index.php file


Dave01978

Recommended Posts

ok im a complete noobie at this and im trying to edit the text in for the index.php page, I can add most things with no problem however I MUST have a ' other wise the company of the product will not approve it and when i add that in with the text it gives me a parse error, and shows TEXT_MAIN instead of anything else, anyone have any ways to fix this?

 

Thanks

Dave

Link to comment
Share on other sites

Escape it with a \

 

ie: \'

 

Here's an example I quickly snagged

 

define('BOX_HEADING_WHATS_NEW', 'What\'s New?');

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

When you edit your Text_Main make sure you keep your text inside the 'your text' note the ' needs to bee there...Thats the most likely problem..

 

Mike

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...