Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Code creating parse error


Guest

Recommended Posts

Posted

I am getting the following error on my front page when I insert the code listed below.

 

ERROR:

 

Parse error: parse error, unexpected ')' in /home/popcorn/public_html/catalog/includes/boxes/information.php on line 35

 

HERE IS CODE FROM catalog>includes>boxes>information:

 

<?php
/*
 $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/
?>
<!-- information //-->
         <tr>
 <td> 
   <table width="144" border="0" cellspacing="0" cellpadding="0" class="infoboxborder">
     <tr>
       <td>          <table width=100% border=0 cellpadding=0 cellspacing=0 class="infoBoxContents">
           <tr> 
             <td colspan=3 width="100%"> <img src="images/boxes/table_information.jpg"></td>
           </tr>
           <tr> 
             <td> 
               <?php


 $info_box_contents = array();
 $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a><br>' .
                                       '<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_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_POPCORN_LINKS) . '">' . BOX_INFORMATION_POPCORN_LINKS . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_COMP_RULES) . '">' . BOX_INFORMATION_COMRULES . '</a>').
               
'<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_GV . '</a>');//ICW ORDER TOTAL CREDIT CLASS/GV


 new infoBox($info_box_contents);
?>
           </td>
         </tr>
              </table>
       </td>
     </tr>
   </table>
   
 </td>
</tr>

<!-- information_eof //-->

 

It is this line that is causing the issue:

 

'<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_GV . '</a>');//ICW ORDER TOTAL CREDIT CLASS/GV

 

Can anyone see what is wrong here?

 

Cheers

 

Mark

Posted

Hi Mark,

 

It looks like it could be this bracket here:

 

'<a href="' . tep_href_link(FILENAME_COMP_RULES) . '">' . BOX_INFORMATION_COMRULES . '</a>').

 

Cheers

Rob

Posted

It's not that line, it's the next one.

Posted

Humour him as he is correct, well almost

 

'<a href="' . tep_href_link(FILENAME_POPCORN_LINKS) . '">' . BOX_INFORMATION_POPCORN_LINKS . '</a><br>' .
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?'<a href="' . tep_href_link(FILENAME_COMP_RULES) . '">' . BOX_INFORMATION_COMRULES . '</a><br>' .
? ? ? ? ? ? ? 
'<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_GV . '</a>');//ICW ORDER TOTAL CREDIT CLASS/GV

 

requires a <br> inserted as well

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted
requires a <br> inserted as well

 

not to fix the parse error... but yes, good spot for layout ;)

Archived

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

×
×
  • Create New...