According to my error messages there are two erros to the code below, does anybody have any idea what i have done wrong?? :

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /spare/apache2/htdocs/stud/c0356147/E-commerceshop/oscommerce-2.2ms2-060817/catalog/includes/boxes/links.php on line 4

Parse error: parse error, unexpected T_STRING in /spare/apache2/htdocs/stud/c0356147/E-commerceshop/oscommerce-2.2ms2-060817/catalog/includes/boxes/links.php on line 4


[<?php
<tr>
<td>
$info_box_contents = array();
$info_box_contents [] = array('text' => BOX_HEADING_MY_NEW_LINKS_BOX );
new infoBoxHeading ($info_box_contents , false, false);
$info_box_contents = array();
$info_box_contents [] = array('text' => '<a href="' . tep_href_link (FILENAME_linkspage ) . '">' .
BOX_LINKS_PAGE1 . '</a><br>' .
'<a href="' . tep_href_link( FILENAME_PAGE2) . '">' .
BOX_LINKS_PAGE2 . '</a><br>' .
'<a href="' . tep_href_link( FILENAME_PAGE3) . '">' .
BOX_LINKS_PAGE3 . '</a><br>' .
'<a href="' . tep_href_link( FILENAME_PAGE4) . '">' .
BOX_LINKS_PAGE4 . '</a><br>' .
'<a href="' . tep_href_link( FILENAME_PAGE5) . '">' .
BOX_LINKS_PAGE5 . '</a>');
new infoBox ($info_box_contents );
?>
</td>
</tr>
<!-- information_eof //-->]

Whats the

<tr>
<td>

doing inside the <?php tags?
Is that supposed to be there?

try:

<?php
echo '<tr>';
echo '<td>'; 
$info_box_contents = array();

...

?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.