Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how can I use bread crumb in PHP ?

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>&nbsp;>>&nbsp;";
}

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what is the difference between mysql_fetch_object() and mysql_fetch_array()?

1008


What is chrome logger?

978


What are PHP Magic Methods/Functions. List them.

1068


What is the difference server side and browser side validation?

1006


How to Retrieve a Cookie Value?

1215


How to reset/destroy a cookie in php?

967


What does $_files means?

1048


Tell me what is the difference between unset() and unlink()?

1092


How can we pass the variable through the navigation between the pages?

992


How do http requests work?

969


What is a class in php programing?

2573


How to generate a form?

1187


Explain php parameterized functions.

984


When to use single quotes, double quotes, and backticks?

980


Does php need a closing tag?

966