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
How to enable parsing?
Does php support multithreading?
What is return in php function?
How do I update php?
Why do we use interface in php?
Define metaphone()?
Write down the code for saving an uploaded file in PHP.
Is facebook still in php?
What is file upload?
Explain the installation of PHP on UNIX systems?
What is the importance of parser in php?
What is regular expression in php?
Where sessions stored in PHP?
How do I sort numbers in php?
Which php framework is best for web development?