Hi there,
Just a bit of a quickie really, well, i presume it is anyway...
I have made (with a bit of assistance off here - cheers guys!) a breadcrumb script, which outputs the users current position on the forum for example home > forum 1 > forum 2...
It all works ok, appart from one thing... The categories are the wrong way around!!
So instead of appearing:
Hardware > Processors > AMD > Athlon
It appears:
Athlon > AMD > Processors > Hardware
Anyone how to prevent this from happening?
My code is printed below:
$result = mysql_query("select * from forums where id=$id");
$item = mysql_fetch_object($result);
$parent = "$item->parent";
echo "Forums > $item->name > ";
while($parent != "0") {
$result2 = mysql_query("select * from forums where id=$parent");
$item2 = mysql_fetch_object($result2);
echo "$item2->name > ";
$parent = "$item2->parent";
}
Thanks For Your Time,
Regards,
Jonathan