doushi5913 2015-01-21 15:06
浏览 25
已采纳

通过单击链接显示mySQL条目

I've got one site which should be like a list of contents. The topics are saved in a mySQL database. If you click on a topic it should open a new site. The only difference between those sites is the text which is also saved in that database.

How can I realize that without writing hundreds of sites?

Example:

--page1.php-- --page2.php----- |Topic1 | |Database entry| |Topic2 ----|-Click->|with title | |Topic3 -, | |"Topic2" | ---------|--- ---------------- | Click | \/ --page2.php----- |Database entry| |with title | |"Topic3" | ----------------

If you click "Topic2" page2.php opens containing the Database entry of "Topic2", if you click another topic, the same page opens but it contains a different entry.

Thank you!

  • 写回答

1条回答 默认 最新

  • douwen7905 2015-01-21 15:08
    关注

    You pass the unique identifier of the topic by a GET parameter in the URL.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 连续两帧图像高速减法
  • ¥15 组策略中的计算机配置策略无法下发
  • ¥15 如何绘制动力学系统的相图
  • ¥15 对接wps接口实现获取元数据
  • ¥20 给自己本科IT专业毕业的妹m找个实习工作
  • ¥15 用友U8:向一个无法连接的网络尝试了一个套接字操作,如何解决?
  • ¥30 我的代码按理说完成了模型的搭建、训练、验证测试等工作(标签-网络|关键词-变化检测)
  • ¥50 mac mini外接显示器 画质字体模糊
  • ¥15 TLS1.2协议通信解密
  • ¥40 图书信息管理系统程序编写