<!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.6000.16525" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am able to query the nodes linked to a specific 
taxonomy and generate nodes, but in my loop the nodes get over written and in 
the end I hav eonly the last node.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Code:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;while ($node_tid = db_fetch_object($result)) 
{&nbsp;<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;global 
$user;<BR>&nbsp;&nbsp;&nbsp;$question-&gt;uid = 
$user-&gt;uid;<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;$question-&gt;type= 
'questions';<BR>&nbsp;&nbsp;&nbsp;$question-&gt;title = 
$node_tid-&gt;title;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // $question 
= node_submit($question);<BR>&nbsp;&nbsp;&nbsp;$question-&gt;taxonomy = 
$category;<BR>&nbsp;&nbsp;&nbsp;$question-&gt;og_groups[]&nbsp; = 
$gid;<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp; $new_id= 
node_submit($question);<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
node_save($new_id);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
cache_clear_all();&nbsp;&nbsp;&nbsp; <BR>&nbsp;}</FONT></DIV></BODY></HTML>