Categories > TinyButStrong general >

multi-dimensional array

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: gmak
Date: 2004-02-18
Time: 01:32

multi-dimensional array

Hi,

I have an array ($errors) of the form:
[0] => Array ( [field] => name [value] =>something [msg] => Please enter a name )
[1] => Array ( [field] => email [value] =>else [msg] => You must provide an email address )

In my php, I have merged the block with:
     $TBS->MergeBlock("errs",$errors);

My problem is that I can't figure out how to define a block so that I can display the err.msg values. Normally, I'd expect that I could simply call:
       [errs.msg;block=tr]
But, everything I try results in nothing being displayed.

What's the correct syntax for this form of multi-dimensional array?
By: gmak
Date: 2004-02-18
Time: 10:58

Re: multi-dimensional array

Oops.

The reason nothing was being displayed was that I forgot to add the $TBS->Show() after merging.

Doh!