Thanks alot! I had no idea what to search google for.
Here is what I came up with.
I have urls that look like ?do=album&album=Car/Mustang/Engine. It gets the contents of the current folder. So I wanted a display like so for the nav:
[link=Home] Home > [link=Car/] Car > [link=Car/Mustang] Mustang > [link=No link] Engine
If you can understand that. Anyways, thought I would share my outcome incase anyone else was wondering how:
<?
$album=str_replace(".","",$_GET['album']);
$folder=explode("/",$album);
$count=count($folder);
for($i=0;$i<$count;$i++) {
If($folder[$i]) {
$last=$i;
$path.=$folder[$i]."/";
If(($count-2) > $i) {
$nav.=" > <a href=\"/?do=album&album=".$path."\"><img src=\"/img/photos-close.gif\" border=\"0\" align=\"absmiddle\"> $folder[$i]</a> ";
}
}
}
If($folder[$last]) {
$nav.=" > <img src=\"/img/photos-open.gif\" border=\"0\" align=\"absmiddle\"> ".$folder[$last];
}
Echo($nav);
?>