Noob with a PHP Syntax error, probably very easy for anybody but me?

john g

New member
I am getting the syantax error "Parse error: syntax error, unexpected '<' in /var/www/html/nick/orders_list.php on line 1644"

********THIS IS LINE 1644****************<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $orders[ 'orders_id' ] . '&action=delete') . '">'. tep_image(DIR_WS_IMAGES . 'delete.png', IMAGE_DELETE) . '</a> | <a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $orders[ 'orders_id' ] . '&action=delete') . '">'. tep_image(DIR_WS_IMAGES . 'delete.png', IMAGE_DELETE) . '</a> |

************BELOW IS THE CODE****************

!-- bof order list improved -->


<td><?php
<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $orders[ 'orders_id' ] . '&action=delete') . '">'. tep_image(DIR_WS_IMAGES . 'delete.png', IMAGE_DELETE) . '</a> |
echo '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $orders[ 'orders_id' ] . '&action=edit' ) . '">'. tep_image(DIR_WS_IMAGES . 'icon_info.png', IMAGE_ICON_INFO) . '</a> |
<a href="' . tep_href_link(FILENAME_ORDERS_EDIT, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $orders[ 'orders_id' ] ) . '" TARGET="_blank">' . tep_image(DIR_WS_IMAGES . 'edit.png', IMAGE_EDIT) . '</a> |
<a href="' . tep_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $orders[ 'orders_id' ]) . '" TARGET="_blank">' . tep_image(DIR_WS_IMAGES . 'invoice.png', IMAGE_ORDERS_INVOICE) . '</a> |;

?>
<!-- <a href="' . tep_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $orders[ 'orders_id' ]) . '" TARGET="_blank">' . tep_image(DIR_WS_IMAGES . 'packingslip.png', IMAGE_ORDERS_PACKINGSLIP) . '</a> | -->

<!-- <?php if ($has_label_pdf) { ?>


<a href="' . tep_href_link(FILENAME_ORDERS_LABEL, 'oID=' . $orders[ 'orders_id' ]) . '" TARGET="_blank">' . tep_image(DIR_WS_IMAGES . 'print_label.png', IMAGE_ORDERS_LABEL) . '</a>


<?php } ?> -->
 
You can't just type

<?php
Hey this is some text.
?>

You have to use echo. For example

<?php
echo('Hey this is some text.');
?>

It's telling you that it doesn't expect the < character because you need to echo it.
 
Back
Top