gogo----數組裡面的資訊顯示問題
數組裡面的資料如下
Array
(
[0] => Array
(
[tagname] => sa1
[flag1] =>
[commid] => sa1
[type] => 0
[code] => Array
(
[0] => 1
[1] => 2
)
[opname] => Array
(
[0] => sa1_a
[1] => sa1_b
)
[sama_size] => 2
)
[1] => Array
(
[tagname] => ma1
[flag1] =>
[commid] => ma1
[type] => 2
[code] => Array
(
[0] => 1
[1] => 2
)
[opname] => Array
(
[0] => ma_1
[1] => ma_2
)
[sama_size] => 2
)
)
在頁面上建立一個table。然後顯示資料。要實現的功能要按照下面提供的代碼格式寫,
<{assign var="temp_type" value=$selList[loop].type }>
<{$allarr_account_type[$temp_type]}>
------解決思路----------------------
還是處理你上次提交過來的資料嗎
Array ( [mode] => SETPOINT [snstabId] => 49 [webctrl_page_token] => dd4be4ef0d797d21eeee32267ccfe87d [sel_c_id] => [topscrollleft] => 0 [p] => 1 [searchFlag] => page [member_id] => 1000257015 [pageSize] => 20 [orderby] => member_id [orderbyType] => desc [point] => fdfds [searchMembernickname] => [searchMemberId] => [topictimes1] => [topictimes2] => [pictimes1] => [pictimes2] => [setPointM] => [members] => Array ( [0] => 1000257015 [1] => 1000257014 [2] => 1000256473 [3] => 1000255958 [4] => 1000255957 [5] => 1000255755 [6] => 1000255751 [7] => 1000255750 [8] => 1000255748 [9] => 1000255747 [10] => 1000199511 [11] => 1000031784 [12] => 1000031760 [13] => 1000031716 [14] => 1000031715 [15] => 1000031714 ) [1000257015_point] => fdfds [1000257014_point] => [1000256473_point] => [1000255958_point] => [1000255957_point] => [1000255755_point] => [1000255751_point] => [1000255750_point] => [1000255748_point] => [1000255747_point] => [1000199511_point] => [1000031784_point] => [1000031760_point] => [1000031716_point] => [1000031715_point] => [1000031714_point] => )
這是你點擊按鈕時提交過去的資料,你在你的程式裡 重新列印一下
echo "
";
print_r($_POST);die();
列印你自己看看 結果,然後告訴我你想怎麼弄?說的詳細點。
------解決思路----------------------
具體是哪個問題? 上次的那個?還是新的問題? 你要怎麼處理?你給的tpl參考代碼 是什麼意思?如果 實現圖片效果,直接迴圈不就行了?現在問題是什麼 我還沒弄明白,再詳細點?
------解決思路----------------------
只有 code 和 opname有可能是數組,對嗎?有沒有其他元素也是數組的? code 和 opname 他們這個數組長度是固定的嗎,現在他們都是2個,有沒有可能是三個 四個?