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
Describe the security vulnerability of PHP?
Is php front end?
Which is not a php magic constant?
What is the use of isset() in php?
How to redirect a url from http to https in .htaccess?
Write a php function to convert all null values to blank?
What is the use of callback in php?
What is http get and post?
What is the difference between die () and exit () in php?
Why do we use query?
How to read one character from a file?
What is difference between required and require_once in php?
How many escape sequences are recognized in double-quoted strings?
What is session in php why it is use?
What is a substring in php?