<?php
$userr=$empire->fetch1("select * from {$dbtbpre}enewsmemberadd where userid='$user[userid]' limit 1");
?>然后再用
<?=$userr[userpic]?>
或
<img src="<?=$userr[userpic]?$userr[userpic]:'/e/data/images/nouserpic.gif'?>
"这样是没上传图片时调用默认图片 上传了就用新图片
注意:一定要先加代码在引用 及:代码要在引用字段的前面  
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!
转载请注明: 调用帝国CMS会员头像教程