今日浏览
0
独立访客
0
今日注册
0
总用户数
0
未登录
请先登录
友情链接:
prepare("SELECT title, url, description FROM friendlinks WHERE status = 1 ORDER BY sort_order ASC, id DESC");
$stmt->execute();
$links = $stmt->fetchAll(PDO::FETCH_ASSOC);
if (empty($links)) {
echo '暂无友链';
} else {
foreach ($links as $link) {
$title = htmlspecialchars($link['title']);
$url = htmlspecialchars($link['url']);
$desc = htmlspecialchars($link['description'] ?: $title);
echo '' . $title . '';
}
}
} catch (PDOException $e) {
echo '加载失败';
}
?>