Posted by Sandman on 09/10/06 08:48
In article <1157851650.688319.256430@i3g2000cwc.googlegroups.com>,
"rich" <rhdyes@gmail.com> wrote:
> I am trying to setup a set of radio buttons from a table. I am getting
> the error:
> Parse error: parse error, unexpected '[', expecting ',' or ';' in
> /var/www/html/liberty/prototype1.php on line 251
> This is the snippet of code.
>
> <?php
> $getnormwtA = getnormwt();
> $numct = count($getnormwtA);
> $tab = 16;
> $wt = 'weight';
> $typ = 'radio';
> for ($i=0; $i<$numct; $i++){
> echo "<input name=". $wt ." tabindex=". $tab ." value=".
> $getnormwtA[$i]['bodywtid'] ." type=". $typ ."/>".
> getnormwtA[$i]['bodyweightnorm'] .">";
> $tab++;
> ?> }
> ?>
>
> This is line 251
>
> echo "<input name=". $wt ." tabindex=". $tab ." value=".
> $getnormwtA[$i]['bodywtid'] ." type=". $typ ."/>".
> getnormwtA[$i]['bodyweightnorm'] .">";
^^^^^^^^^^
Missing "$":
$getnormwtA[$i]['bodyweightnorm']
--
Sandman[.net]
[Back to original message]
|