Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: syntax error, unexpected '<'


brain404

Recommended Posts

Posted

What am I missing here on the first line? The error I have is for line 13. I tried to do a change to an image and it didn't work and took out a couple of lines. I tried to put them back but doesn't work out right. I saved the file down to my computer but when I looked it wasn't there. So I need some HELP!

 

 

define('TEXT_MAIN', <b>'this is a test page and any products you see here are not for sale and information seen of these products are not real the check out doesn't work as a normal store. 'Any information seen on these products is to be treated as fictional</b>.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>

Posted

Try this (alterations highlighted):

 

define('TEXT_MAIN', '<b>this is a test page and any products you see here are not for sale and information seen of these products are not real the check out doesn't work as a normal store. Any information seen on these products is to be treated as fictional</b>.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>

 

Basically the single quotation marks signify the start & end of strings so use them carefully. Terra

My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad)

and how to solve the invoice already paid error

General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email **

Archived

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

×
×
  • Create New...