Berbatako azpisarrerak antolatu
Lotutako hitzak berbaren dagokion sarreran erantsita azalduko dira.
nid] = $row->type;
$b[$row->nid] = array('nid' => $row->nid, 'berba' => $row->berba);
}
ksort($r);
foreach($r as $k => $v){
if($v == "adiera"){
$last_parent = $k;
} else {
$nr[$last_parent][] = $k;
}
}
foreach($nr as $k => $v){
foreach($v as $n){
//db_queryd('UPDATE node_relations SET pnid = %d WHERE nid = %d AND type = "Esamolde"', $k, $b[$n]['nid']);
print sprintf('UPDATE node_relations SET pnid = %d WHERE nid = %d AND type = "Esamolde"', $k, $b[$n]['nid']).';
'; } } } else { print l('ekin', 'node/201921', array(), 'ekin=1'); } ?>
'; } } } else { print l('ekin', 'node/201921', array(), 'ekin=1'); } ?>
Batere ez.