This is the code snippet from my original message:
>
> // Do it!
> for ($i = 0; $i <= 34; $i++) {
>
> // Need help with this part
> $j = $i + 1;
> $var = ${"DAY".$j};
> $val = $day[$i];
>
> // Set PHPLIB Template variable
> $t->set_var( $var => $val );
>
> }
>
> // D
Ruslan Ohitin wrote:
> Hello Michel,
>
> You mixing php variables and Template variables. They are from
> different "namespaces". set_var() takes associative array with string
> keys - Template var names. Edit one line of your code:
>
> ML> $var = ${"DAY".$j};
> $var = "DAY" . $j; // $var is
Hello Michel,
You mixing php variables and Template variables. They are from
different "namespaces". set_var() takes associative array with string
keys - Template var names. Edit one line of your code:
ML> $var = ${"DAY".$j};
$var = "DAY" . $j; // $var is a string "DAYn"
--
Best regards,