At 20:17 25.06.2003, Daniel J. Rychlik said: --------------------[snip]-------------------- > >Its erroring at my display links function. This function is inside my main >class. > >function DisplayLinks($links) { > > while(list($name, $url) = each($links) { > > echo ":::<a href= '$url''>$name</a>:::\n"; > > } //End while > > } // End DisplayLinks function > > >I dont see why it wont work... I even try assigning $links to the array. --------------------[snip]--------------------
The error (in fact it's a warning) points out that your variable "$links" is neither array nor object. Add this line on top of your DisplayLinks() method: echo "<pre> ** START DUMP **\n"; var_dump($links); echo "** END DUMP **</pre>'; This should give you any info available on "$links". If "$links" is null, you will see nothing between ** START DUMP ** and ** END DUMP **. Once you have this info you can investigate further. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php