<div>Whats the difference between these two code snippets (1 works, 2 doesnt) :<br><br>1)<br><br>$nresult = db_query('SELECT n.nid, n.body, n.type, n.title, n.promote,<br>n.moderate, n.teaser, n.created, n.changed, <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://u.name/" target="_blank">
u.name</a> FROM {node} n ,<br>{users} u, {term_node} tn, {users_roles} ur where n.uid = u.uid AND<br>n.nid=tn.nid AND u.uid=ur.uid AND n.status = 1 AND n.created > %d<br>ORDER BY n.created', $period);<br><br> $nodes = array();
<br><br> while ($node = db_fetch_object($nresult)) {<br> $nodes[$node->nid] = $node;<br> }<br><br>2)<br><br>$nresult = mysql_query('SELECT n.nid, n.body, n.type, n.title,<br>n.promote, n.moderate, n.teaser, n.created
, n.changed, <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://u.name/" target="_blank">u.name</a> FROM<br>node n , users u,term_node tn, users_roles ur where n.uid = u.uid<br>AND n.nid=tn.nid AND
u.uid=ur.uid AND n.status = 1 AND n.created ><br>$period ORDER BY n.created');<br><br>$nodes = array();<br><br>while ($row = mysql_fetch_array($nresult, MYSQL_NUM))<br>{<br> $nodes[$node->nid] = $node;<br><br>}</div>
<div> </div>
<div>Regads,</div>
<div> </div>
<div>V</div>