Re: [PHP] Fatal error: Call to a member function on a non-object in example 1.php on line 66

2002-01-17 Thread Jason G.
First of all, make sure the $root-children() returns an array of objects. Second of all, remove the space between $All_nodes and [1]. Your code should look like: $childNodes=$All_nodes[1]-children(); If that does not work, you may have to create a temp var to use... $tmp = $All_nodes[1];

RE: [PHP] Fatal error: Call to a member function on a non-object in example 1.php on line 66

2002-01-17 Thread Sandeep Murphy
Hi, Thnx a lot for your suggestion.. Well the moment I removed the space the error disappeared but the page doesnt show any output ... tried trapping errors but none appears.. any further ideas pl!!! Thnx again, sands -Original Message- From: Jason G. [mailto:[EMAIL PROTECTED]] Sent: