Hi I am trying something different with creating a menu system for a new ecommerce site.
Im trying to plan to best approach for creating the menu system, database and catogories page.
But I ham having trouble in deciding the easiest/best approach and wondered if I could get you advice.
current the menu structure is as follows:
Home (dynamic drop down menu)
Living (dynamic drop down menu)
Dining (dynamic drop down menu)
Sleeping (dynamic drop down menu)
Home Accessories (dynamic drop down menu)
Decorative Items (dynamic drop down menu)
In Store Now
I have Products table
I have a Category table
The products table has a field "CategoryID" that links that product to what ever category record in the category table.
In the products table I have fields NEW ARRIVALS, BEST SELLERS and INSTORENOW (which stores a 1 value)
I also have a search box in the header that will search on product name.
now, my main question/concern, I would want to keep my file structure to a category.php page and a product.php page. But then I am trying to work out how the best way I can do this since for the category.php page the recordset would be pulling in a URL variable based on several conditions (since first its checking from the dropdown menus for the different categories and then their is the condition that if the page is being entered from the user selecting either, NEW ARRIVALS, BEST SELLERS or IN STORE NOW...as well as if the user have chosen to use the product name search box that would list all products via the category page.
The simplest way to solve this is to separate the conditions into separate files such as:
but I feel this is a bad method of programming as its basically repeating page structure and code to some extent. so would prefer to keep it all contained in one page file.
I wonder if its a case of one big recordset or would I need several recordsets on the same page (which again is bad programming).
Any thoughts or opinions on the best approach?