Where is the array $tools defined? The count() function returns the number of elements in a variable (in this case an array). It is seeing that there are 0 elements in the $tools array and therefore your script is trying to divide 100 by 0 which will spit out a warning every time. Should $tools be $toolsneeded instead?
----- Original Message ----- From: "Sean Mayhew" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 10, 2002 3:59 PM Subject: Re: [PHP] Class Function Problem : while(list($name,$url) = each($tools)) : : : >From: "Rodney Green" <[EMAIL PROTECTED]> : >To: <[EMAIL PROTECTED]> : >CC: <[EMAIL PROTECTED]> : >Subject: [PHP] Class Function Problem : >Date: Tue, 10 Dec 2002 15:58:09 -0500 : > : >What is on line 251? : > : > >Warning: Variable passed to each() is not an array or object in : > >/home/www/website/admin/include/adminclass.php on line 251 : > : > : >-- : >PHP General Mailing List (http://www.php.net/) : >To unsubscribe, visit: http://www.php.net/unsub.php : : : _________________________________________________________________ : MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. : http://join.msn.com/?page=features/virus : : -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php