Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

++ help with listings for manufacturers +++


Guest

Recommended Posts

Posted

Please kindly have a look at this website at http://pdcdigitalsolutions.co.uk/manufacturers.php?cPath=41

 

At the moment, you can see the 'Hitachi' and 'Infocus' are listed as vertical. I would like the listing to be horizontal.

 

I believed that it is to do with this code here:

 

while ($manufacturers = tep_db_fetch_array($manufacturers_query))

{

echo '<tr><td width="100%" class="main"><b>';

$categories_ids = $manufacturers['categories_id'];

echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=' . $cpath . $categories_ids) . '">';

echo $manufacturers['categories_name'];

echo '</a>';

echo '</b></td></tr>';

$categories_query_raw = "SELECT DISTINCT manufacturers.manufacturers_name AS manufacturer_name, manufacturers.manufacturers_id AS manufacturer_id FROM products Inner Join manufacturers ON manufacturers.manufacturers_id = products.manufacturers_id Inner Join products_to_categories ON products_to_categories.products_id = products.products_id Inner Join categories_description ON products_to_categories.categories_id = categories_description.categories_id WHERE products_to_categories.categories_id ='" . $categories_ids . "'" ;

 

$categories_query = tep_db_query($categories_query_raw);

while ($categories1 = tep_db_fetch_array($categories_query))

{

echo '<tr><td width="100%" class="main">   ';

$manufacturers_id = $categories1['manufacturer_id'];

echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=' . $cpath . $categories_ids) . '&filter_id=' . $manufacturers_id . '">';

echo $categories1['manufacturer_name'];

echo '</td></tr>';

}

}

 

 

Can anyone help so that the listings are horizontal rather than the vertical listing?

Archived

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

×
×
  • Create New...