Click to See Complete Forum and Search --> : Creating a breadcrumb?


k0r54
11-29-2005, 05:04 PM
Hi,

I am attempting to creating a breadcrumb trail function. I find the ones on the net a bit too advance since they are mostly classes and i am not at that level yet.

I have a fairly firm understanding off php, and have a parent_id field in the database and a parent_id in the url to tell me what categories are loaded. I somehow need to work backwards finding the id where the parend_id = the url parent_id until i get to the parent_id being 0.

(hope you understand that)

Anyway do you have any ideas?

Thanks
k0r54

Sheldon
11-29-2005, 05:14 PM
try searching before posting only one page back,

http://www.webdeveloper.com/forum/showthread.php?t=86727
On the search that it returned to me, the 3rd linkn was a good one and very easy to use. Even for a newbe or some one with a fairly firm understanding off php.

k0r54
11-30-2005, 03:12 AM
try searching before posting only one page back

I always do, just i found when i went to google there was nothing of any use. I downloaded a few scripts but they were all a bit to complex or used classes which i dont have a clue about.

I will search a bit more on google, but if you find anything, or can help please let me know.

I am looking at the code on the 3rd link on the return: -
Google search (http://www.oscdox.com/crossx/nav.html?includes/classes/breadcrumb.php.html)

The things is, i really dont understand classes, despite my efforts :(

How do i link to it, how does it know my last links? does it remember them?

Any tips on this code would be really helpfull.

Thanks sheldon
k0r54

k0r54
11-30-2005, 05:25 AM
ahhh months of work has been explained in one VERY good OOP tutorial

http://www.phpfreaks.com/tutorials/48/0.php

It still doesn't clear up everything in relation to the trail, as i dont have any idea how to call that paticular class, so any help will still be very much appreciated. However im understanding has suddenly clicked.

I think classes can REALLY help my programming, is there anything i should look out for?

Thanks
k0r54