Aspen_AGB Posted May 25, 2003 Posted May 25, 2003 I'm implimenting my own design quite a bit in my oscommerce site, and I'm just calling the functions where I need them.. the one thing I can't seem to do right, is call for the manafacturers image on product info page.. this is what I'm trying right now: echo tep_image(DIR_WS_IMAGES . $manufacturer['manufacturers_image']) but it dosen't show up... i've taken a look in the manafacturers info box and tried to see what calls it there, but i can't seem to figure it out... any help would be greatly appreciated, thanks. Note: I'm sorta new to php but i'm trying the best I can
Aspen_AGB Posted May 25, 2003 Author Posted May 25, 2003 after mulling over it for a while, i've figured out the obvious... if (isset($HTTP_GET_VARS['products_id'])) { $manufacturer_query = tep_db_query("select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image, mi.manufacturers_url from " . TABLE_MANUFACTURERS . " m left join " . TABLE_MANUFACTURERS_INFO . " mi on (m.manufacturers_id = mi.manufacturers_id and mi.languages_id = '" . $languages_id . "'), " . TABLE_PRODUCTS . " p where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.manufacturers_id = m.manufacturers_id"); if (tep_db_num_rows($manufacturer_query)) { $manufacturer = tep_db_fetch_array($manufacturer_query); what I need is though, is to impliment it in the page. but it gives me an error, something like unexpected end on line(end line) I really need this, and any help would be very much appreciated.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.