Re: AW: [PHP-DB] getting mysql_fetch_row into array
| From: | Johannes Janson | Date: | Mon, 23 Sep 2002 20:15:51 +0000 |
| Subject: | Re: AW: [PHP-DB] getting mysql_fetch_row into array | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21950@lists.php.net to get a copy of this message | ||
Hi,
Micah Stevens wrote:
Nope. Anytime you set an array with no index equal to something, (i.e. $deptcount[]) it will add another element to the end of the array. If you use .=, that means append the data, but since you're not specifying an element, I'm not sure what it would do. Perhaps PHP is smart enough to just add another element anyway. Have you tried this?Well it's been some time since I dealt with PHP but as far as I remember I did it like that and it worked. Well, sorry for the misinformation. cheers J