Hello guys am new with PHP. Would some one help me with the code below am getting:

ERROR:
Parse error: parse error in C:\webdev\Apache\Apache2\htdocs\oscommerce-2.2rc2a\catalog\product_reviews_video.php on line 2

CODE:

<?php
define('NAvb script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//-->


<noscript>
<?php 
echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; 
?>

</noscript>

<?php

echo '<p><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now') . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a></p>';
?>
</td>
</tr>
</table>
</td>
</table></td>
</tr>
</table></td>
<!-- body_text_eof //-->

Not sure why you're using define(). The syntax for define is define(name,value) which is clearly not how you're using it.

Don't you want echo() to actually output this text? And the "Navb" is completely out of context.

You need to explain how and where the content of line 2 is supposed to be used.

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.