帝国cms主表附表数据的合并读取
提示: 阅读权限:公开
$infotb=ReturnInfoMainTbname($tbname,$index_r['checked']);//返回表
$r=$empire->fetch1("select * from ".$infotb." where id='$id' limit 1");
$r[newstime]=date("Y-m-d H:i:s",$r[newstime]);
//副表
$infodatatb=ReturnInfoDataTbname($tbname,$index_r['checked'],$r['stb']);//返回副表
$finfor=$empire->fetch1("select ".ReturnSqlFtextF($mid)." from ".$infodatatb." where id='$id'");
$r=array_merge($r,$finfor);
站内直通车
[!--temp.bottomnav--]