【发布时间】:2017-10-05 15:34:56
【问题描述】:
我会尽我所能来表达这句话。我已经添加了指向我需要帮助的页面的链接,它们也是那里的说明。我是php新手,需要帮助,谢谢。
P.S.
I would like to keep the code I have unless you have a better one.
我的问题 --- 我用我的数据库表中的单词创建了按钮。我需要知道的是如何将链接按钮添加到您单击的单词,此链接将打开我的articlestagresults.php 页面并显示被选中的单词以及列出相应的文章到他们从标签云中选择的词。请查看我的两个网页,看看我要做什么。 这是我的两页,其中包含注释,以更好地说明我的意思。 https://livinghisword.org/articlestagresults.php ---- https://livinghisword.org/articlestagcloud.php 在此处输入代码 这是 articletagcloud.php 的代码 --- 下面
$sql = mysqli_query($db_conx, "SELECT word FROM articles GROUP BY word ORDER BY word ASC");
while ($row = mysqli_fetch_array($sql)) {
$word = $row['word'];
ksort($word);
echo "<div class='cloudbox tag'>$word</div>";
}
非常感谢您提供的所有帮助!
【问题讨论】:
标签: php mysql hyperlink tags cloud