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
What are the advantages of stored procedures, triggers, indexes in php?
When use javascript vs php?
Which method do you follow to get a record from a million records? (Searching not from database, from an array in php)?
What is difference between array_merge and array_combine in php?
What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
What is the difference server side and browser side validation?
How to get best php developer Experience in Php with Sugar CRM / VTiger.
Write a program to show the joining of two strings in php?
What does $_files means?
What is the meaning of die in php?
What are the differences between mysqli_connect and mysqli_pconnect?
How many php functions are there?
Tell me how a constant is defined in a php script?
What is session in c#?
What is the Default syntax used in PHP?