DEJ4Y Posted February 23, 2005 Share Posted February 23, 2005 In admin i get the error Parse error: parse error, unexpected $ in /home/pegasus/public_html/store/admin/products_attributes.php on line 821 when I click on product attributes :( Line 821 is $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 . " does any one have this problem or know how to fix it ? thanks , J Link to comment Share on other sites More sharing options...
Nick H Posted February 23, 2005 Share Posted February 23, 2005 I wonder if this is all the code. the end of it should read something like: pd.language_id='" . $languages_id . "'"); The change is that the last double quote is opening but not closing. There should also be a closing bracket and semicolon at the end. Hope this helps Link to comment Share on other sites More sharing options...
DEJ4Y Posted February 23, 2005 Author Share Posted February 23, 2005 Thanks i tried changing it to $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 . "'"); Still no luck :( Link to comment Share on other sites More sharing options...
Guest Posted February 23, 2005 Share Posted February 23, 2005 post the 5 lines before and after . .. Link to comment Share on other sites More sharing options...
DEJ4Y Posted February 23, 2005 Author Share Posted February 23, 2005 ok line 821 is the last line but here is what comes before it </tr> <?php } if ($action != 'update_attribute') { ?> <tr> <td colspan="7"><?php echo tep_black_line(); ?></td> </tr> <tr class="<?php echo (floor($rows/2) == ($rows/2) ? 'attributes-even' : 'attributes-odd'); ?>"> <td class="smallText"> <?php echo $next_id; ?> </td> <td class="smallText"> <select name="products_id"> <?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...
cbeaudry Posted March 17, 2005 Share Posted March 17, 2005 Any answers to this yet? I'm getting the exact same error... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.