Re: [PHP] array_sum help

2003-03-13 Thread Marek Kilimajer
There should not be any problem with zeros, as long as they are in array. The warning tells you, you are not passing an array, so there must be some broken logic in your code. Try putting print_r($the_array) before line 154 Beauford.2002 wrote: Hi, I have a mysql database in which some values

[PHP] array_sum help

2003-03-12 Thread Beauford.2002
Hi, I have a mysql database in which some values are loaded into an array - the problem is that some fields may contain zeros. The problem is the following. If there happens to be zeros in certain column's (which there will be from time to time) then I get this error. How do I get around this? Fun