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
Explain what does $_server means?
Write a program to get lcm of two numbers using php?
Is null check in php?
What is chrome logger?
What is a definer in mysql?
What is the use of token in php?
Do you know how to get the ip address of the client?
What are the data types in php?
Explain the casts allowed in PHP?
With a heredoc syntax, do I get variable substitution inside the heredoc contents?
What is the use session in php?
Difference between get and post method.
What is advanced php programming?
What is $$ in php?
How to declare an array in php?