Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do i create a directory for a product catalogue im making?
    primarykey
    data
    text
    <p>I am creating a product catalogue which will be browsed through database queries with the results displayed in a div, without page refresh-via ajax.</p> <p>Category examples would be:</p> <p>Home Health Entertainment</p> <p>There are also subcategories for each category, i.e:</p> <p>HOME: Garden Furniture Plumbing Etc.</p> <p>I want to make a little directory thing that shows exactly where they are, something like:</p> <p>Home >>> Garden >>> Lawn care </p> <p>With each of those as a clickable link to take the person back to that specific query level.</p> <p>My code is 1 .php document, involving a query and code to output the query. If output is clicked on, it triggers an ajax script which points back to and reruns the same query/output, but with different results.</p> <p>This being said, i dont know how i would create a way to store and display the directory path. That i mentioned above.</p> <p>I was thinking of some way that takes the category that was clicked on and passes it through the url so that the php has the value when it reloads. And then i work that variable into a clickable directory link. But the problem is I'm not sure how to do that for multiple layers.</p> <p>i.e. If someone just clicked on "garden" i could pass the garden variable through and use that in the nav, but then if someone clicked on "lawn care" i wouldnt be sure how to keep the "garden" variable because the variable i brought over via the url would now read "lawn care."</p> <p>I feel like it has something to do with dynamically adding and storing the cumulative values in an array, but I'm really out of ideas...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload