Guest Posted September 13, 2005 Share Posted September 13, 2005 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 More sharing options...
Guest Posted September 13, 2005 Share Posted September 13, 2005 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 More sharing options...
Guest Posted September 13, 2005 Share Posted September 13, 2005 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 More sharing options...
♥Vger Posted September 13, 2005 Share Posted September 13, 2005 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.