funkyg Posted March 8, 2008 Share Posted March 8, 2008 Hello, i'm php newbie and trying to learn I was wondering how can I make something like "current path" For example if I have an index menu like this : Home, About me, Colors, Contact , and if I click Colors, then in submenu i click blue , my url would be http://localhost/colors/blue Now i would like to create path menu that would be positioned under the menu that in this case would look like this: home / colors / blue Any help is appriceated, thx. Quote Link to comment https://forums.phpfreaks.com/topic/95049-path-help/ Share on other sites More sharing options...
wildteen88 Posted March 8, 2008 Share Posted March 8, 2008 That technique is called Breadcrumb, search google for that term and you should find some scripts/tutorials. Quote Link to comment https://forums.phpfreaks.com/topic/95049-path-help/#findComment-486887 Share on other sites More sharing options...
funkyg Posted March 11, 2008 Author Share Posted March 11, 2008 Ok it works but not in this case Actually my http://localhost/index.php/pg/"3333.html" is generated by mysql autoid (auto_increment) and there is parent column as well. I wrote a script that : select name from cont where id=3333; It shows me current name, but not an absolute path. How do i use that parent column to write out whole path? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/95049-path-help/#findComment-489363 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.