Thank you for the reply.. but that what I was not looking...
I was thinking how to detect where are you by url ?
like this
$navbar=navbar();
funcion navbar(){
switch(getvar("file")){
case"viewcat":
echo"<a href=\"index.php\">Home</a> >>Books >."singlerow(book_name,book,book_id=$id)."";
break;
case"viewchapter":
echo"<a href=\"index.php\">Home</a> >>Books >."singlerow(book_name,book,book_id=$id).">".singlerow[chapter_name,book_chapter,chapter_id)."";
break;
}
}
I thought i could do other better way..