Oho (-: I think it is on php
Main Topics
Browse All TopicsI need to do a page navigation.
say for example,..
I have a category which has subcategory in that i ll b havin products,....
Category
-- SubCategory
-- Products
I have a link namely as store. When i click tat link it displays all categories,....
when d user clicks a category it displays all subcategories under tat,.. then.
If user clicks subcategory it displays all products under tat,.... then
when product is clicked it displays all necessary info regarding product,....
Store --> Category -> subcategory -> Products.
I need to display this navigation indicating which category, which subcategory and which product a user clicked and viewing now,...
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
hello RajeshKanna, , There may be many, many, different ways and combination of ways (php, javascript, ajax, database, xml) to do some type of thing that you have given a short description of in your question. But for me, I do NOT see or understand, some of what you say. As you say "link namely as store", are there more than one store, or several stores?, If there is just one store, you may want to NOT have that as a "link", and just start out with all of the Categorys displayed, this is the way many sites have their navigation beginning. And I am not sure of your reference to "link" A standard link will load a new page, but you say "it displays all subcategories", as if javascript will use DHTML to change the page without reloading it. There are so many different ways to do either of these that you may need to give more info about it. Also, I am not sure this EE forum is the place for such a general web site design question, as there are too many technical details to deal with when considering a web site navigation set up.
Business Accounts
Answer for Membership
by: M00NSPELLPosted on 2009-09-01 at 01:56:28ID: 25229587
It's very simple
)) ] = $row;
))
parent_id' ]), $products) rent_id']] as $key => $value)
database structure
Category - | id | parent_id | title | ...
Product - | id | cat_id | title | ...
$now_in_cat_id = $_SESSION['cat_id'];
$now_in_product_id = $_SESSION['product_id'];
foreach($row = mysql_fetch_assoc($result2
{
$products[$row['cat_id']][
}
foreach($row = mysql_fetch_assoc($result1
{
if($row[parent_id] == 0)
{
if($now_in_cat_id == $row[id])
echo "<b>";//this is only demonstrative tag
echo "<a href='/cat=" . $row[id] . "'>" . $row['title'] . "</a>";
}
else
{
if($now_in_cat_id == $row[id])
echo "<b>";//this is only demonstrative tag
echo " - <a href='/cat=" . $row[id] . "'>" . $row['title'] . "</a>";
if(array_key_exists($row['
{
foreach($products[$row['pa
{
if($now_in_product_id == $value[id])
echo "<b>";//this is only demonstrative tag
echo " - - <a href='/product=" . $value[id] . "'>" . $value['title'] . "</a>";
}
}
}
}
page.php
$_SESSION['product_id'] = $_GET['product'];
$_SESSION['cat_id'] = $_GET['cat'];
with some statements