DELETE_ME Posted June 22, 2004 Posted June 22, 2004 I need to know how to add the manufacturers name to the product_info page, But i cant seem to get the select statement correct. Has anyone done this yet and how did you get it to work?
DELETE_ME Posted June 23, 2004 Author Posted June 23, 2004 Never mind I figured it out, code is below. $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_unit_measure, p.products_jwod, p.products_packing_level, p.products_recycled, p.products_weight, p.products_list_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id, m.manufacturers_id, m.manufacturers_name from " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = m.manufacturers_id "); $products_manufacturer=$product_info['manufacturers_name']; <td class="pageHeading" ><?php echo $products_manufacturer?></td>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.