Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Populating a list with categories/manufacturers?


Accounts

Recommended Posts

Posted

Hi, I would like to know how I can populate a list with certain categories or manufacturers.

 

This needs to be dynamic so that if I add a new manufacutrer or category in the admin menu, it automatically appears in the list.

 

And if they are clicked on, it goes to the corresponding category link.

 

I have an idea on how it would work, but I am unsure of the SQL methods used in OSC.

 

Thanks.

Posted

Kenneth,

 

Do you mean you want to create a page to display your manufactures ? Maybe I don't understand exactly what you are trying to accomplish. Could you explain further ?

 

 

Chris

Posted

Never mind, I worked it out myself. I was trying to do this:

 

<?php 
$manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from manufacturers order by manufacturers_name");
while ($row = mysql_fetch_assoc($manufacturers_query)) {
echo "<li><a href=\"#\">" . $row['manufacturers_name'] . "</a></li>";
}


?>


</ul>

Archived

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

×
×
  • Create New...