>hmmmm.  Ok.  Can somebody explain this one?  Why won't it work correctly?
>
>for($m=1;$m<=5;$m++){
> $div_idd[$m]=${'row->sub' . $m . 'd'};
>}
>
>Can it not be done with a 3 parter?  The columns in the table that $row 
>gets, are sub1d, sub2d, sub3d, sub4d and sub5d.  Or is it the "->" that is 
>messing it up?  I have tried escaping them "row\-\>sub", but that didn't work.
>What would I search for on the PHP site or where are directions located 
>that tells me how to use this type of putting a variable together.  It 
>makes it hard to search for it if I don't know what it is called.

You want to search for "variable variables"

At a guess, you need:

$div_idd[$m] = $row->{'sub' . $m . 'd'};

For sure, you need to get the subXd part together before you get the -> or
the $row involved.

-- 
Like Music?  http://l-i-e.com/artists.htm
I'm looking for a PRO QUALITY two-input sound card supported by Linux (any
major distro).  Need to record live events (mixed already) to stereo
CD-quality.  Soundcard Recommendations?
Software to handle the recording? Don't need fancy mixer stuff.  Zero (0)
post-production time.  Just raw PCM/WAV/AIFF 16+ bit, 44.1KHz, Stereo
audio-to-disk.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to