Re: Re: how to passing two dimension array
| From: | - Edwin | Date: | Fri, 10 Jan 2003 09:38:02 +0000 |
| Subject: | Re: Re: how to passing two dimension array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131065@lists.php.net to get a copy of this message | ||
Or,
"Noel Wade" <noelwade@attbi.com> wrote:
> You're missing string concatenation operators. I use "echo" instead of
> "print" - but here's how it should look with either:
>
> echo "<SELECT NAME=\"".$vari[$i][$j]."\">";
Try this instead:
Just add curly brackets before and after the variable and don't forget the "$" sign.
So, this
> > print "<SELECT name=\"vari[$i][$j]\">";
would be like this:
print "<SELECT name=\"{$vari[$i][$j]}\">";
or this:
echo "<select name=\"{$vari[$i][$j]}\">";
- E
...[snip]...
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/