Posted by Ewoud Dronkert on 05/28/05 23:51
On 28 May 2005 13:45:10 -0800, Malcolm Dew-Jones wrote:
> $sum += $row[cost];
Array indices are numeric or string, not constant. It works because it
used to work in ancient php, but you should really say:
$sum += $row['cost'];
--
Firefox Web Browser - Rediscover the web - http://getffox.com/
Thunderbird E-mail and Newsgroups - http://gettbird.com/
Navigation:
[Reply to this message]
|