1 Nov 2010, 10:27 PM
New Zenner
- Join Date:
- May 2010
- Posts:
- 3
- Plugin Contributions:
- 0
Post #1 by jeanjeanitaly
Hi,
On my website i'm trying to show the manufacturer logo instead of the category image when manufacturer products page is shown.
My try untill now is in tpl_index_product_list.php add the follwoing code:
$man_id = $_GET['manufacturers_id'];
$query = "SELECT `manufacturers_image` FROM `gsdbmanufacturers` where manufacturers_id = '" . (int)$man_id . "'";
$db->Execute($query);
$result = $db->Execute($sql);
echo $result->fields['manufacturers_image'];
But it doesnt work, it doesnt show anything. Where is my error?