Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product_attributes


DEJ4Y

Recommended Posts

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

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

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

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

  • 3 weeks later...

Archived

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

×
×
  • Create New...