问题描述
解决方案
您的问题是您没有在 while 循环中包含 html 锚标记,这就是为什么您没有在网页上获得任何 url 的原因。这是给你的演示代码。
<?php
$SelectMainCats = mysqli_query($con, "SELECT * FROM cms_service LIMIT 0, 1");
while($row=mysqli_fetch_assoc($SelectMainCats)){
$a1heading = $row['a1heading'];
$rm1_link = $row['rm1_link'];
echo '<a href=". $rm1_link . " class="custom-btn mr-3 mt-3"><i class="fas fa-plus f-14 mr-3"></i> Ver mas</a>"';
}
?>
推荐阅读
- thunderbird - Thunderbird 60+ 插件中的创建按钮
- database - 存储高频(例如振动)时间序列数据的有效方法
- java - 使用 Jackson将作为列表或对象的 JSON 内容解析为列表
- javascript - 对对象类型数组的属性求和并将它们作为单个对象加入
- wordpress - 水印帖子不见了
- html - 更改 div 块的背景
- c - malloc 上的链接列表程序崩溃
- c - 这个算法的时间复杂度是多少。我可以让它更快吗?
- javascript - 使用 jquery 基于包含类选择父 DIV 内容
- c# - 当绑定属性为整数类型时,如何验证 DataGridCell 的内容