摘要: 就一行代码 $mains就是富文本内容 代码: {:htmlspecialchars_decode($mains)} 阅读全文
posted @ 2024-04-20 23:30 79524795 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 直接上代码 $mains就是富文本内容,提取到的都在$matches // 使用正则表达式 提取 富文本 第一行文本 preg_match('/^.*$/m', strip_tags($mains), $matches); $ym_data[$i]['mains_hang'] = $matches[ 阅读全文
posted @ 2024-04-20 03:09 79524795 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 直接上代码 这样就不会查出来'aaaa,bbbb'两个字段了 $query = Db::name('table'); $data = $query->field('aaaa,bbbb', true)->select(); 阅读全文
posted @ 2024-04-20 01:36 79524795 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 直接上代码 $type_id = $_GET['typeid'] ?? ''; //父 ID $subitem_id = $_GET['subitem'] ?? ''; //子 ID $orderby = $_GET['orderby'] ?? ''; //排序方式 最新new 热度hot 点赞za 阅读全文
posted @ 2024-04-20 00:21 79524795 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 直接上代码 $type_id = 31; echo Db::name('ymtype')->where('parent_id', $type_id)->fetchSql()->select(); //打印查询语句 $results = Db::name('ymtype')->where('paren 阅读全文
posted @ 2024-04-20 00:11 79524795 阅读(3) 评论(0) 推荐(0) 编辑