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
Is null empty php?
What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
What is strlen php?
How to redirect https to http url and vice versa in .htaccess?
How is session data stored?
Are php sessions secure?
Is php developer in demand?
What is variable and data type?
What is oops php?
Who developed php?
Tell me how do you define a constant?
How to get the number of characters in a string?
What is difference between array_merge and array_combine?
What is the method to register a variable into a session?
How does the identity operator === compare two values?