Accounts Posted July 13, 2010 Posted July 13, 2010 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.
Guest Posted July 13, 2010 Posted July 13, 2010 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
Accounts Posted July 15, 2010 Author Posted July 15, 2010 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>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.