asim


{ City } hyderabad
< Country > india
* Profession * php programmer
User No # 73238
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 1
Users Marked my Answers as Wrong # 3
Questions / { asim }
Questions Answers Category Views Company eMail




Answers / { asim }

Question { 3880 }

how can I use bread crumb in PHP ?


Answer

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 ' href="'.$brdcrum['page'].'">'.$brdcrum['title']." >> ";
}


Is This Answer Correct ?    1 Yes 3 No