Re: AW: [PHP-DB] getting mysql_fetch_row into array
| From: | Johannes Janson | Date: | Mon, 23 Sep 2002 20:01:46 +0000 |
| Subject: | Re: AW: [PHP-DB] getting mysql_fetch_row into array | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21945@lists.php.net to get a copy of this message | ||
Hi,
$res = mysql_query ("SELECT COUNT(deptid) FROM maintenance GROUP BY deptid"); $deptcount = array(); // reset the array while ($row = mysql_fetch_row ($res)) { $deptcount[] = $row[0];this should be $deptcount[] .= $row[0]; shouldn't it?
}cheers J