Maison >développement back-end >tutoriel php >gogo-数组里面的信息显示有关问题

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

WBOY
WBOYoriginal
2016-06-13 12:12:261025parcourir

gogo----数组里面的信息显示问题
数组里面的数据如下

<br />Array<br />(<br />    [0] => Array<br />        (<br />            [tagname] => sa1<br />            [flag1] =>  <br />            [commid] => sa1<br />            [type] => 0<br />            [code] => Array<br />                (<br />                    [0] => 1 <br />                    [1] => 2 <br />                )<br /><br />            [opname] => Array<br />                (<br />                    [0] => sa1_a<br />                    [1] => sa1_b<br />                )<br /><br />            [sama_size] => 2<br />        )<br /><br />    [1] => Array<br />        (<br />            [tagname] => ma1<br />            [flag1] =>  <br />            [commid] => ma1<br />            [type] => 2<br />            [code] => Array<br />                (<br />                    [0] => 1 <br />                    [1] => 2 <br />                )<br /><br />            [opname] => Array<br />                (<br />                    [0] => ma_1<br />                    [1] => ma_2<br />                )<br /><br />            [sama_size] => 2<br />        )<br /><br />)<br />

在页面上创建一个table。然后显示数据。要实现的功能要按照下面提供的代码格式写,



------解决思路----------------------
还是处理你上次提交过来的数据吗
<br /><br />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] => ) <br />

这是你点击按钮时提交过去的数据,你在你的程序里 重新打印一下
echo "

";<br>print_r($_POST);die();<br>打印你自己看看 结果,然后告诉我你想怎么弄?说的详细点。<br><br><font color="#FF8000">------解决思路----------------------</font><br>具体是哪个问题? 上次的那个?还是新的问题? 你要怎么处理?你给的tpl参考代码 是什么意思?如果 实现图片效果,直接循环不就行了?现在问题是什么 我还没弄明白,再详细点?<br><font color="#FF8000">------解决思路----------------------</font><br>只有 code 和 opname有可能是数组,对吗?有没有其他元素也是数组的? code 和 opname 他们这个数组长度是固定的吗,现在他们都是2个,有没有可能是三个 四个?<div class="clear">
                 
              
              
        
            </div>
Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn