<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>nevermind..silly me , didnt even look at 
term_data</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=vrao@misteam.net href="mailto:vrao@misteam.net">vrao</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=support@drupal.org 
  href="mailto:support@drupal.org">support@drupal.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, November 23, 2005 4:29 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [support] get parent 
  taxonomy tree?</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>I dont think I gave enough info, the hierarchy 
  tree is particularly important for people who use 
  taxonomy_menu.module</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>For eg, this is what I do..but am wondering if 
  there is an existing solution which also provides the vocab ID (my function 
  doesnt)</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>function 
  taxonomy_menu_returntree($tid)<BR>{</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>$tree=$tid;</FONT></DIV>
  <DIV><FONT face=Arial size=2>$query=mysql_query("select parent from 
  term_hierarchy where 
  tid=$tid");<BR>$result=mysql_result($query,0);</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>while ($result !=0)<BR>{<BR>$tree = $result . "/" 
  . $tree ;<BR>$query=mysql_query("select parent from term_hierarchy where 
  tid=$result");<BR>$result=mysql_result($query,0);</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>}<BR>return $tree;</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>}<BR></FONT></DIV>
  <BLOCKQUOTE 
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV 
    style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
    <A title=vrao@misteam.net href="mailto:vrao@misteam.net">vrao</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A title=support@drupal.org 
    href="mailto:support@drupal.org">support@drupal.org</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, November 23, 2005 3:10 
    PM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> [support] get parent taxonomy 
    tree?</DIV>
    <DIV><BR></DIV>
    <DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Is there a function to get the parent tree? for 
    example, the full path for term '15' is website.com/taxonomy_menu/3/10/15 
    .</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Right now, I use taxonomy_get_parents(15) and 
    get to 10..then call it again until I find '0'. Is there a function that 
    either returns the full path of the term or returns the hierarchy tree? 
    </FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>taxonomy_get_parents_all seems to do something 
    completely different...</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>V</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <P>
    <HR>

    <P></P>-- <BR>[ Drupal support list | http://lists.drupal.org/ ]</BLOCKQUOTE>
  <P>
  <HR>

  <P></P>-- <BR>[ Drupal support list | http://lists.drupal.org/ 
]</BLOCKQUOTE></BODY></HTML>