Misplaced File Folders

“);
$sub_items = array();
// call function to find all nodes in a term
$sub_items = get_nodes_in_term();
$output .= “

    “;
    // Add nodes to items array
    foreach($sub_items as $val) {
    $output .= $val;
    }
    $output .= “

“;
print $output;

function get_nodes_in_term() {
$sub_items = array();
$sql = “SELECT node.title, node.nid FROM node INNER JOIN term_node ON node.nid = term_node.nid WHERE term_node.tid NOT IN (33,32,15,16,17,41,1,2) ORDER BY node.title”;
$result = db_query($sql);
while ($anode = db_fetch_object($result)) {
$sub_items[] = “

  • ” . l($anode->title, “node/$anode->nid”) . “
  • “;
    }
    return $sub_items;
    }
    ?>

    “);
    $sub_items = array();
    // call function to find all nodes in a term
    $sub_items = get_nodes_in_term();
    $output .= “

      “;
      // Add nodes to items array
      foreach($sub_items as $val) {
      $output .= $val;
      }
      $output .= “

    “;
    print $output;

    function get_nodes_in_term() {
    $sub_items = array();
    $sql = “SELECT node.title, node.nid FROM node INNER JOIN term_node ON node.nid = term_node.nid WHERE term_node.tid NOT IN (33,32,15,16,17,41,1,2) ORDER BY node.title”;
    $result = db_query($sql);
    while ($anode = db_fetch_object($result)) {
    $sub_items[] = “

  • ” . l($anode->title, “node/$anode->nid”) . “
  • “;
    }
    return $sub_items;
    }
    ?>


    Posted

    in

    by

    Tags:

    Comments

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.