Re: Strange but true!
| From: | David Ford | Date: | Mon, 21 Aug 2000 18:24:53 +0000 |
| Subject: | Re: Strange but true! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-12777@lists.php.net to get a copy of this message | ||
Ramender Kishore wrote:
> I need some explanation on this please!
>
> I wanted to make a double dimensional array for use in my program.
>
> I wrote something like:
>
> while($row = mysql_fetch_array($sql_result))
> {
> $name[$num] = $row["name"];
> $ip_address[$num] = $row["ip_address"];
> $num++;
> }
Try $name[] = $row["name"] ... which will grow the array by inserting at the proper point.
-d
--
"The difference between 'involvement' and 'commitment' is like an
eggs-and-ham breakfast: the chicken was 'involved' - the pig was
'committed'."