数据库要的数据要在页面中预存是用的比较多的,通常用数组的形式
$i=0;
$url=array();
$content=array();
$subinfo=$picnews->getsubpiclist('tb_picnews',$info['tb_date'],0);
foreach ($subinfo as $key => $value)
{
$url[$i]= $value['tb_url'];
$content[$i]=$value['tb_content'];
$i++;
}
echo $url[0];
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29753604/viewspace-1372253/
,如需转载,请注明出处,否则将追究法律责任。