Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error in syntax


lironofer

Recommended Posts

Posted

This is the code from the customers.php file

if ($selected_box == 'customers') {

$contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS .

 

}

 

for some reason I get the following error in the admin :

Parse error: syntax error, unexpected '}' in /home/content/54/6620054/html/admin/includes/boxes/customers.php on line 26

 

Many thanks for your help.

Posted

Hi.

 

  if ($selected_box == 'customers') {
   $contents[] = array('text'  => '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' .
                                  '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a>');
 }

 

 

'</a>'); is missing.

 

Hope this helps

 

Ken.

Archived

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

×
×
  • Create New...