SerbanG Posted July 10, 2003 Share Posted July 10, 2003 hello how do i grabb a manufacturer name and echo it? i want a snippet of code or an example from the oscommerce itself. thanks zam Serban Ghita - my blog Link to comment Share on other sites More sharing options...
Rumble Posted July 11, 2003 Share Posted July 11, 2003 this might help $manufacturer_query = tep_db_query("select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image from " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS . " p where p.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and p.manufacturers_id = m.manufacturers_id"); $manufacturer = tep_db_fetch_array($manufacturer_query); <?php echo $manufacturer['manufacturers_name']; ?> this should give you the manufacturers name for a given product (from calling its product_id) let me know if this works for you. Reddy to Rumble Thank you osCommerce and all who Contribute to her! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.