PHP Classes

node_path

Recommend this page to a friend!

      Node Tree  >  All threads  >  node_path  >  (Un) Subscribe thread alerts  
Subject:node_path
Summary:class 4 path
Messages:1
Author:jan michalik
Date:2008-03-22 21:48:43
 

  1. node_path   Reply   Report abuse  
Picture of jan michalik jan michalik - 2008-03-22 21:48:44
i have something like this:

$query = mysql_query("select * from treetest where node_id='$id'");
$text = mysql_fetch_array($query);
if($text[node_path]!="x"){
$cesta = str_replace(".", " > ", $text[node_path]);
$cesta = substr($cesta, 1);
}
echo $cesta." > ".$text[node_id];
//result leke this: > 77 > 743 > 2001

// i need write instead node_id node_title so then should looks like this: > europe > germany > berlin, help me pls how to write the script. than you.