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
Write down the code for save an uploaded file in php.
What is the difference between html and php?
What is difference between Method overriding and overloading in PHP?
What exactly is PHP?
Tell me how stop the execution of a php scrip?
Does strlen include null?
How do I know my xampp version?
What is array function in javascript?
How do you check if an arraylist is empty?
what is the use of include_once in php?
Do you know what is the differences between $a != $B and $a !== $B?
Is it more secure to use cookies to transfer session ids?
Why is php used for web development?
Which is better python or php?
What does $_files means?