代码拉取完成,页面将自动刷新
<?php
include_once 'global.php';
//作品的基本信息
if(!empty($_GET['id'])){
$sql="SELECT a.*,b.*,c.name FROM `n_productbase` as a, `n_productcontent` as b ,`n_productclass` c WHERE a.id=b.nid and a.cid=c.id and a.id='$_GET[id]'";
$query = $db->query($sql);
$row_product = $db->fetch_array($query);
}
$smarty->assign("row_product",$row_product);
//作品的详细图片
if(!empty($_GET['id'])){
$sql="select b.pictures from n_productcontent a,n_uploadpic b where a.sessionid=b.sessionid and a.nid='$_GET[id]'";
$query = $db->query($sql);
while ($row_productpic = $db->fetch_array($query)){
$ly_pictures[] = array(
'pictures'=>$row_productpic['pictures'],
);
}
}
$smarty->assign("ly_pictures",$ly_pictures);
$smarty->display("product_view.html");
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。