SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question PHP Breadcrumbs Needed...

    Hello, I have spent hours searching for an elegant and simple php breadcrumb solution. Don't want to use a Database.

    Can you please help me find a script I can use to implement and learn?

    Thank you!

  2. #2
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    69 Post(s)
    Tagged
    0 Thread(s)
    There's probably a reason you've spent hours searching for one that doesnt use a database. The immediate answer is: Use a database.

    Even if you dont use a database, you've got to store the information about what page leads to what somewhere... which is the equivilant of having a database.
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.

  3. #3
    SitePoint Evangelist smftre's Avatar
    Join Date
    Dec 2008
    Location
    London
    Posts
    436
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Step 1: Add all pages into a database, otherwise how are you going to navigate to the page when you click it?
    Step 2: Make sure each page has a parent/hierarchy to be able to do some SQL on.
    Step 3: You're done!

    N.B. If you are trying to do this on static html files and want to build a tree around that then you will probably have to do the breadcrumbs statically too. Or you could always add them into an associated array and do it all in PHP.
    Statvoo.com The Website Traffic Monitor
    The best way to monitor traffic to your sites for free!


    Web Development London UK We make web 3.0 applications


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •