[前台调用]查询指定单页的内容DYCMS

/ / 2019-07-15   阅读:2496
<?php $sql="select content from about where id=1"; $result=$conn->query($sql); if($result->num_rows>0){ $data=$result->fetch_assoc(); } ?> <?php echo utf_substr(strip_...
<?php
$sql="select content from about where id=1";
$result=$conn->query($sql);
if($result->num_rows>0){
$data=$result->fetch_assoc();

}
?>

<?php echo utf_substr(strip_tags(htmlspecialchars_decode($data["content"])),200)?>

我要评论

昵称:
验证码:

最新评论

共0条 共0页 10条/页 首页 上一页 下一页 尾页
意见反馈