Answer Posted / asim shariff
create a session array variable in the homepage or index page,
$_SESSION['page_name']= array();
index.php :-
$_SESSION['page_name'][]=array('title'=>'Home','page'=>'index.php');
contact_us.php :-
$_SESSION['page_name'][]=array('title'=>'Contact Us
','page'=>'contact_us.php');
similarly for all the pages.
where you want to display the bread crumb just paste this code.
foreach($_SESSION{'page_name'] as $brdcrum)
{
echo '<a
href="'.$brdcrum['page'].'">'.$brdcrum['title']."</a> >> ";
}
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Do you know what is the difference between mysql_fetch_object() and mysql_fetch_array()?
What is chrome logger?
What are PHP Magic Methods/Functions. List them.
What is the difference server side and browser side validation?
How to Retrieve a Cookie Value?
How to reset/destroy a cookie in php?
What does $_files means?
Tell me what is the difference between unset() and unlink()?
How can we pass the variable through the navigation between the pages?
How do http requests work?
What is a class in php programing?
How to generate a form?
Explain php parameterized functions.
When to use single quotes, double quotes, and backticks?
Does php need a closing tag?