当前位置:Gxlcms > PHP教程 > gogo-数组里面的信息显示有关问题

gogo-数组里面的信息显示有关问题

时间:2021-07-01 10:21:17 帮助过:4人阅读

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个,有没有可能是三个 四个?

人气教程排行