帝国cms内容页正文字段newstext的PHP写法图片加扩展变量显示
代码如下:<?$artilce_body=stripslashes($navinfor['newstex...
代码如下:
<?
$artilce_body =stripslashes($navinfor['newstext']);
$newstext=str_replace('/d/',$public_r['add_zhann_cn_img'].'/d/',$artilce_body);
echo $newstext;
?>
<?
$artilce_body =stripslashes($navinfor['newstext']);
$newstext=str_replace('/d/',$public_r['add_zhann_cn_img'].'/d/',$artilce_body);
echo $newstext;
?>