note 18815 added to function.mysql-fetch-array
| From: | timpie2000 at zeelandnet dot nl | Date: | Wed, 06 Feb 2002 16:50:41 +0000 |
| Subject: | note 18815 added to function.mysql-fetch-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26300@lists.php.net to get a copy of this message | ||
There is a special SQL command for adding entire rows, if you want to use PHP you can use:
while($row=mysql_fetch_array($result))
{
$total += $row["column_name"]
}
--
http://www.php.net/manual/en/function.mysql-fetch-array.php
http://master.php.net/manage/user-notes.php?action=edit+18815
http://master.php.net/manage/user-notes.php?action=delete+18815
http://master.php.net/manage/user-notes.php?action=reject+18815