* Date: 2026-5-30 */ if (!defined('ROOT_PATH')) { exit('Access Denied'); } $pageTitle = '搜索结果'; $keyword = trim($_GET['keyword'] ?? ''); $articleList = $productList = []; if ($keyword !== '') { $kw = '%' . $keyword . '%'; $articleList = $db->fetchAll("SELECT id, title, create_time, 'article' AS tp FROM {$db->table('article')} WHERE status=1 AND title LIKE ? ORDER BY create_time DESC LIMIT 50", [$kw]); $productList = $db->fetchAll("SELECT id, title, create_time, 'product' AS tp FROM {$db->table('product')} WHERE status=1 AND title LIKE ? ORDER BY create_time DESC LIMIT 50", [$kw]); } $resultList = array_merge($articleList, $productList); usort($resultList, function($a,$b){ return intval($b['create_time']) <=> intval($a['create_time']); }); require_once __DIR__ . '/_header.php'; ?>
搜索结果
    搜索结果您的位置: 首页 >> 搜索结果
    • 未找到相关内容