例如,我有一个order_number
来自MySQL
数据库。
下面的代码将打印出 订单号:order_number
。我想创建一个超链接到order_number
. 有可能这样做吗?
while ($row = mysql_fetch_array($result)) {
echo '<b>'.'Order Number: '.'</b>' .$row['order_number'].'<br />';
}
下面的代码对超链接是否正确order_number
?
while ($row = mysql_fetch_array($result)) {
echo '<b>'.'Order Number: '.'</b>' ."<a href="www.testpage.com/jobs/order_number">$row['order_number']</a>".'<br />';
}
我什至确信可以用新的order_number
.
即:order_number
= 11111 -->www.testpage.com/jobs/11111
order_number
= 22222 -->www.testpage.com/jobs/22222