Jump to content

I need help on my php but i am getting errors on admin orders


kustomjs

Recommended Posts

Hi Guys

I am a newbie here and I have a problem with my oscommerce php code and its under admin orders and I am getting this error: Parse error: parse error, unexpected '}' in catalog/admin/orders.php on line 472 and I moded the files with admin notes and google checkout and I also attached my admin code in TXT format

 

 

[attachment deleted by admin]

ok here it is

 

</form></tr>

<tr>

<td colspan="2" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' . tep_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' . tep_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action'))) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td>

</tr>

<?php

} else {

?>

<tr>

<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

U should understand that posting 875 lines of code is hilarious. As thorpe suggested post only several lines. Anyway i just took a look what was going around line 472. U have an if else statement and im guessing u have two repeated } (one one line 463 and one in line 473). Try removing one of them and see if thats the problem.

i guess the error  is not missing } i guess if you missed that it should say expected } not unexpected}

 

so i believe that the error maybe you missed something before that }

 

or you have used this } without the {

 

;)

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.