简体   繁体   English

如何使用 href 中数据库中的产品 ID 作为目录

[英]How do I use the ID of a product from the database in the href as a directory

I want to know if I can do something like this to reference a specific product on a seperate page.我想知道我是否可以做这样的事情来在单独的页面上引用特定产品。

 <a href="products/<?php echo $productId?>">Name of certain product</a>

for each of my products instead of using a get method to display the products.对于我的每个产品,而不是使用 get 方法来显示产品。

I want to know if I can do something like this to reference a specific product on a seperate page.我想知道我是否可以做这样的事情来在单独的页面上引用特定产品。

 <a href="products/<?php echo $productId?>">Name of certain product</a>

for each of my products instead of using a get method to display the products.对于我的每个产品,而不是使用 get 方法来显示产品。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM