filling an array(2)
| From: | Steve Buehler | Date: | Fri, 26 Jul 2002 20:53:13 +0000 |
| Subject: | filling an array(2) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-109883@lists.php.net to get a copy of this message | ||
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.
Thanks
Steve
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
ow3