this is more then that but it starts at line 10 and goes till then end of the function. thanks again
shownode(0); // display all the main threads
// This function is a recursive function which shall display all the br /anches
// and sub br /anches of the threads
function shownode($nodecode)
{
global $connect; // using the global variable for connection
// Get a list of all the sub nodes which specific parentcode
$noderesult = odbc_exec($connect,\"select * from forum where parentcode = $nodecode\");
echo \'<ul type=\"disc\">\';
while(odbc_fetch_row($noderesult)) // get all the rows
{
$code = odbc_result($noderesult,\"code\");
$title = odbc_result($noderesult,\"title\");
$uname = odbc_result($noderesult,\"uname\");
$email = odbc_result($noderesult,\"email\");
echo \"<li>\";
echo \"<a href=\"node.php?node=$code\"> $title </a>\";
echo \"-- by ($uname) $email<br />\";
shownode($code);
}
echo \"</ul>\";
}