
February 8th, 2005, 04:23 AM
|
|
Moderated
|
|
Join Date: Oct 2003
Location: UK
Posts: 82
Time spent in forums: 5 h 43 m 44 sec
Reputation Power: 6
|
|
If you format it better the problem becomes obvious (4 errors):
PHP Code:
$contents[] = array(
'align' => 'center',
'text' => '<a href="'
. tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID='
. $pInfo->products_id . '&action=new_product')
. '">'
. tep_image_button('button_edit.gif', IMAGE_EDIT)
. '</a> <a href="'
. tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID='
. $pInfo->products_id . '&action=delete_product')
. '">'
. tep_image_button('button_delete.gif', IMAGE_DELETE)
. '</a> <a href="'
. tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID='
. $pInfo->products_id . '&action=move_product')
. '">'
. tep_image_button('button_move.gif', IMAGE_MOVE)
. '</a> <a href="'
. tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID='
. $pInfo->products_id . '&action=copy_to')
. '">'
. tep_image_button('button_copy_to.gif', IMAGE_COPY_TO)
# Next line wrong:
# . '</a> '<a href="./new_attributes.php?action=select¤t_product_id='
# this line should read
. '</a> <a href="./new_attributes.php?action=select¤t_product_id='
. $pInfo->products_id
. '&cPath='
. $cPath
# This line wrong:
# . '">
# should be
. '"> '
. tep_image_button('button_edit_attributes.gif', 'Edit Attributes')
# Next line wrong:
# . '</A>' <a target="_blank" href="'
# This line should read
. '</A> <a target="_blank" href="'
. HTTP_CATALOG_SERVER
. DIR_WS_CATALOG
. 'product_info.php?products_id='
. $pInfo->products_id
# This line wrong:
# . '">
# should be
. '"> '
. tep_image_button('button_preview.gif', IMAGE_PREVIEW)
. '</a>'
);
Syntax highlighting makes it easy to see where you forgot to teminate strings, or terminated them early!
__________________
http://www.phptutorials.cjb.net. go on, give it a click!
|