Hey,
I have a loop that will execute X amount of times. In that loop I increment a variable and echo one line.
echo "$info[$i] <input type=\"checkbox\" name=\"$info[$i]\" value=\"1\">";
The problem part of that echo seems to be with how i'm trying to echo that array[variable as index]
$info[] = an associative array from a mysql fetch.
$i = a numerical number 1-99.
I've attempted varations on the syntax such as not placing the periods before and after the $info[$i]. i've also tried $info['$i'] ext.
I was able to accomplish something like this in ASP, I would assume its possible in PHP?
Anyways any suggestions ext, would be appreciated.
P.S.
I'm assuming that maybe the reason its not working is that when PHP parses that line, It does not look at my syntax such as $info[1] $info[2] ext, It ends up trying to display $info[$i], as if $i was the INDEX KEY?? and not the value of $i which is 1?? anyways i'm confused..