dongqie4402 2017-03-13 05:19
浏览 30

如何创建一个基于URL加载内容的页面[关闭]

I'm trying to create an easy product display system. I have a database of products which we are displaying on a single /shop.php page, it just lists all the products. But we're at the stage now where we need to have urls linking to products and so each product needs its own page. AKA /products/product1..product2..product3, but really in the backend it's only a product.php file which looks at the incoming/products/product url and creates the page via just that url, AKA the product SKU or ID or whatever primary key, would probably have to use the name because SKU urls look a bit weird. We are using .htaccess to redirect urls such as /shop /home /aboutus so urls such as /products/Bianco needs to display the product page for Bianco.

I hope you can help, thank you very much :)

  • 写回答

2条回答 默认 最新

  • dongtang6775 2017-03-13 05:28
    关注

    I would suggest you to use iFrames.

    https://www.w3schools.com/tags/tag_iframe.asp

    评论

报告相同问题?

悬赏问题

  • ¥15 wpf界面一直接收PLC给过来的信号,导致UI界面操作起来会卡顿
  • ¥15 运动想象脑电信号数据集.vhdr
  • ¥15 三因素重复测量数据R语句编写,不存在交互作用
  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景