After paging, the first page can be displayed, but an error is reported on the second page.
梁恒祥
梁恒祥 2018-07-04 10:51:28
0
2
1261

[8] ErrorException in Pay.php line 216

未定义数组索引: data

$data = Request::get();

$one=date('Ymd', strtotime($data['data']));

 $two=date('Ymd', strtotime($data['dataonly']));

$res=Db::table('hypost')->where('time_end','like',['%'.$one.'%','%'.$two.'%'],'OR')                        ->where('shop',$shopname)   ->paginate(10);

   $this->assign('res',$res);     

<input type="hidden" value="{$j=0}" /> 

{volist name='res' id='see'}

   <tr> 

        <td>{$j}</td> 

       <td>{$see.shop}</td> 

        <td>{$see.tradeno}</td> 

<td>{$see.fee}元</td> 

        <td>{$see.code}</td> 

        <td>{$see.result}</td> 

<td>{$see.time_end}</td> 

    </tr> 

<input type="hidden" value="{$j }" />

{/volist}

  </table>

</div>

{$res|raw}


梁恒祥
梁恒祥

reply all(1)
无忌哥哥

Find $data at line 216 and see where this $data comes from

  • reply Thank you for solving it. I don’t know why. The code written by the teacher cannot be executed.
    梁恒祥 author 2018-07-06 09:00:26
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!