Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

syntax error-simple fix I thnk


cherim

Recommended Posts

Posted

I was trying to add an about us page to my site--

 

when I added the code for it to the information.php I get this error

 

Parse error: syntax error, unexpected ';' in /home/tpchoice/public_html/includes/boxes/information.php on line 26

 

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .

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

'<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a><br>' .

?>

 

The only piece of code I added is in red. There is no extra semicolon in the code

 

 

any suggestions??

 

Thanks

Cheri

Posted

'<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a><br>' .

Should be

'<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>');

Posted

I was trying to add an about us page to my site--

 

when I added the code for it to the information.php I get this error

 

Parse error: syntax error, unexpected ';' in /home/tpchoice/public_html/includes/boxes/information.php on line 26

 

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .

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

'<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a><br>' .

?>

 

The only piece of code I added is in red. There is no extra semicolon in the code

 

 

any suggestions??

 

Thanks

Cheri

 

 

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a><br>' );

Archived

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

×
×
  • Create New...