Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error driving me mad...


jwsfun

Recommended Posts

Can someone who knows a bit o' php take a look at the following code for my information.php and tell me why I keep getting "Parse error: parse error, expecting `')'' in /home/owners/public_html/shop/includes/boxes/information.php on line 28"?

 

The code:

 

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => BOX_HEADING_INFORMATION

);

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => '<a href="' . tep_href_link(FILENAME_SHIPPING, '', 'NONSSL') . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_PRIVACY, '', 'NONSSL') . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a>'

'<a href=\"' . tep_href_link(FILENAME_EBAY, '', 'NONSSL') . '\">' .

BOX_INFORMATION_EBAY . '</a><br>' .

);

new infoBox($info_box_contents);

?>

</td>

</tr>

 

I've combined my privacy and conditions of use to one page, just to make available adding a separate page for our eBay auctions (as a link in the information box, hence the code change there).

I've added the necessary info to the application_top.php, english.php and have the new page (file) uploaded to the english directory.

I cannot figure out why the parse error continually shows...Can someone please help with this?

Thank you. :)

Link to comment
Share on other sites

I think this bit:

 

'<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a>'
'<a href=\"' . tep_href_link(FILENAME_EBAY, '', 'NONSSL') . '\">' . 
BOX_INFORMATION_EBAY . '</a><br>' . 
);

 

should look like:

 

'<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a><a href=\"' . tep_href_link(FILENAME_EBAY, '', 'NONSSL') . '\">' . 
BOX_INFORMATION_EBAY . '</a><br>');

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...