View Full Version : php / jquery / page structure question

10-30-2008, 02:15 PM
I am writing a product.php page for a site. We have roughly 100 products, and the page should be able to display a description and an image for each picture.

What I want is a page that can take in a php query string (e.g. product.php?product=11 ) and display the relevant product (with the heirarchihcal menu opened on the correct item). I gather that I can do this in jquery, by showing/hiding the relevant divs. The problem with this is that I have to load the text etc from all 100 products when the page is loaded.

Is it possible to structure it like so: I have a named div for each product, which contains one include statement. The include statement would be switched off by jquery and when the user selected the menu item (or the product=11 query string was entered) then the content for that product would be loaded into the page. Google spider, on the other hand, would see the entire page with all the products included.