Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can an1 help


Guest

Recommended Posts

I have recently installed oscommerce and I had a bit of a problem with the php.ini file and the register_globals

 

I have installed contribution register_global patch problem is that when I click on product attributes in admin I get:

 

Parse error: parse error, unexpected $ in /home/andrew/public_html/admin/products_attributes.php on line 821

 

Anyone know what this means?

Link to comment
Share on other sites

means there is an error in catalog\admin\products_attributes.php file. You could redo the register global changes to that file. If an apostrophe or quote is missing is enough to break it.

Link to comment
Share on other sites

These are the last 2 lines. Can anybody see a problem here? I am a proper lamer with php sorry :'(

 

<?php

$products = tep_db_query("select p.products_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.products_id = p.products_id and pd.language_id = '" . $languages_id . "

Link to comment
Share on other sites

This is the code for lines 821 to and including 826:

 

<?php
   $products = tep_db_query("select p.products_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.products_id = p.products_id and pd.language_id = '" . $languages_id . "' order by pd.products_name");
   while ($products_values = tep_db_fetch_array($products)) {
     echo '<option name="' . $products_values['products_name'] . '" value="' . $products_values['products_id'] . '">' . $products_values['products_name'] . '</option>';
   } 
?>

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...