Oh, and is there any way to show all my array cells If I don't know which size is the array?
Edited: I suspect that it is done in this way.
Code:
<vb:each from="my_array" key="key1" value="my_result">
{vb:var my_result}
</vb:each>
I am doing something wrong. I have this:
resource(46) of type (mysql result)
And each row is:
Code:
array(21) { ["id"]=> string(2) "18" ["name"]=> string(5) "ABRIR" ["description"]=> string(23) "Iniciar la interacci?n." ["userid"]=> string(4) "2858" ["username"]=> string(20) "Seducci?n Cient?fica" ["dateline"]=> string(10) "1311875182" ["lastupdate"]=> string(10) "1311933838" ["categoryid"]=> string(1) "1" ["status"]=> string(1) "1" ["ipaddress"]=> string(13) "81.202.205.41" ["attach"]=> string(1) "0" ["threadid"]=> string(1) "0" ["lastupdater"]=> string(20) "Seducci?n Cient?fica" ["lastupdaterid"]=> string(4) "2858" ["tags"]=> string(16) "abrir,escalada 1" ["popup"]=> string(23) "Iniciar la interacci?n." ["views"]=> string(1) "0" ["votenum"]=> string(1) "0" ["votetotal"]=> string(1) "0" ["linkurl"]=> string(7) "http://" ["banner"]=> string(7) "http://" }
I'm doing this in my template:
Code:
<vb:each from="my_query" value="sentence">
Test {vb:raw sentence.name}
</vb:each>
Notice this:
Test {vb:raw sentence.name}
But It doesn't show nothing, as if the each is not being executed. I expected to show, at least, 46 Test words.