By: csr
Date: 2004-12-03
Time: 10:52
|
blocks, with matrix, not associative array
Hello, I´m new here.
I have a problem with a simple block. I have a 2 dimension array and I need make a block with this data.
//in php side
$s1 = array(2, 3, 4, 6, 8);
$s2 = array('ee','fe', 'de', 'dd', 'ds');
$last = array($s1,$2);
$TBS->MergeBlock('noms',$last );
//in html side
//I want build a menu
<a href="index.php?unitat=s1.val">s2.val</a>
but I don´t know how I access to this data, to I have repeat block.
If the array are associative, I know how to do it.
thank you very much.
|
By: Skrol29
Date: 2004-12-03
Time: 11:16
|
Re: blocks, with matrix, not associative array
Hello,
If the array is not associative, then it has keys all the same.
In your arrays, keys are 0,1,2,3 and 4.
You can use them as name of fields for a TBS block.
|