Heim > Fragen und Antworten > Hauptteil
[8] ErrorException in Pay.php Zeile 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| roh}