How to access a two-dimensional array in smarty?

Shenme.php:$l_sql="select * from Xia Tian where state =1limit14 "; $ l _ result = MySQL _ query($ l _ SQL);

$ CBA = array(); //Create an array

While ($ bow = MySQL _ fetch _ array ($ l _ result))//Start the loop, and find 1 records with the status = 1 from the Xia Tian table in each loop, that is, $ bow is a one-dimensional array, and loop 14 times.

{ $ NBA = array(); //Create an array

$ NBA[' name ']= $ bow[" name "]; //Assign the name value of the query record to the middle array NBA $ NBA $ NBA[' shac ']= $ bow[" shac "]; "]; //Assign the shac value of the query record to the intermediate array NBA $ CBA [] = $ NBA; //Assign the array nba to the array cba to form a two-dimensional array.

}

$ smarty-& gt; assign("pow ",$ CBA); shenm . TPL:{ section name = shuchu loop = $ pow }

{$pow[shuchu]。 Name}

{$pow[shuchu]。 shac}

{/section}