> > > for($m=1;$m<=5;$m++){
> > > $div_idd[$m]=${'row->sub' . $m . 'd'};
> > > }
I'm not sure if it will work, but you might try either using the
mysql_fetch_array($result); function and then refer to them by
$row["src1d"]; or try $div_idd[$m] = $row->$$name; where $name = "sub" . $m
. "d"; I'm
Ok. That makes since.
Thanks
Steve
At 04:20 PM 7/26/2002 -0500, you wrote:
>var names can only be letters, numbers, and underscores.
>
>Jim Grill
>Support
>Web-1 Hosting
>http://www.web-1hosting.net
>- Original Message -
>From: "Steve Buehler" <[EMAIL PROTECTED]>
>To: "PHP" <[EMAIL PROT
for($m=1;$m<=5;$m++){
$div_id[$m]=${'divid'.$m};
}
Regards,
Andrey
- Original Message -
From: "Steve Buehler" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Friday, July 26, 2002 10:48 PM
Subject: [PHP] filling an array
> Can anyone tell me what I am doing wrong?
>
> I am
3 matches
Mail list logo