<!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> </DIV>
<DIV><FONT face=Arial size=2>Code:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> while ($node_tid = db_fetch_object($result)) 
{ <BR><BR>           global 
$user;<BR>   $question->uid = 
$user->uid;<BR>   <BR>   $question->type= 
'questions';<BR>   $question->title = 
$node_tid->title;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial 
size=2>           // $question 
= node_submit($question);<BR>   $question->taxonomy = 
$category;<BR>   $question->og_groups[]  = 
$gid;<BR>  <BR>         
<BR>    $new_id= 
node_submit($question);<BR>     
node_save($new_id);<BR>         
cache_clear_all();    <BR> }</FONT></DIV></BODY></HTML>