首先,这是php代码
public function test()
{
$result=$this->getExcelData("test.xls");
foreach($result as $value)
{
$where=$where." or idcard_name='".$value[0]."'";
}
$where=substr($where,3);
$handle=M("idcard");
$r=$handle->where($where)->select();
$this->assign("data",$r);
echo "<pre>";
print_r($r);
echo "</pre>";
$this->display();
}然后是模板代码显示出来是这样,到目前为止都很正常
然后,在表格第一列加上idcard_id,然后模板内容就空白了
再把name换成images_up,结果模板内容也是空白字段名你们在图片看得到,完全没有错~~~这是怎么一回事?
public function test()
{
$result=$this->getExcelData("test.xls");
foreach($result as $value)
{
$where=$where." or idcard_name='".$value[0]."'";
}
$where=substr($where,3);
$handle=M("idcard");
$r=$handle->where($where)->select();
$this->assign("data",$r);
echo "<pre>";
print_r($r);
echo "</pre>";
$this->display();
}然后是模板代码显示出来是这样,到目前为止都很正常
然后,在表格第一列加上idcard_id,然后模板内容就空白了
再把name换成images_up,结果模板内容也是空白字段名你们在图片看得到,完全没有错~~~这是怎么一回事?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货