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 php an array?
Write logic to print Floyd's triangle in PHP?
Write a program to display reverse of any number?
Explain what is smarty?
Write a program in php to find the occurrence of a word in a string?
What is isset php?
What is the difference between == and === operator in PHP?
What is mysql_real_escape_string used for?
What is the difference between for and foreach in php?
What is the default session out time?
What is the default session time in php?
Does php need to be installed?
Tell me what are the functions to be used to get the image's properties (size, width and height)?
Does php need apache?
What is polymorphism?