开发者

anchor title attribute

开发者 https://www.devze.com 2023-01-28 18:28 出处:网络
The title is开发者_如何学编程 showing only the first word when you mouse over the link. How can I get the whole order description to show? Thanks

The title is开发者_如何学编程 showing only the first word when you mouse over the link. How can I get the whole order description to show? Thanks

<a title=$row[order_description] href=order.php?order_id=$row[qid]><font class=fontblueData_sub> $row[prod_title]</font></a>


Put the attribute in quotes, like it's supposed to be.

<a title="..." ...


You need double quote.

title="$row[order_description"

<?php
echo("<a title=\"" . $row[order_description] . "\" href=\"order.php?order_id=\"" . $row[qid] . "\">" . $row[prod_title] . "</a>")
?>


As suggested above, the code should look like:

<a title="<?= $row[order_description]; ?>" href="order.php?order_id=<?= $row[qid]; ?>">
   <font class="fontblueData_sub"><?= $row[prod_title]; ?></font>
</a>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号