anchor title attribute
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>
精彩评论