Thursday, May 10, 2007

php code for drupal block wise news


<?php
$res=taxonomy_select_nodes($tids = array(1,3), $operator = 'and', $depth = "all"
, $pager = TRUE, $order = 'n.sticky DESC, n.created DESC');

while( $ans=$res->fetch_array())
{
print("<a href='http://azhikkodu.com/?q=en/node/$ans[nid]'> $ans[title]</a><BR>");
}
?>



--
regards

sajjad.c

No comments:

Post a Comment