开发者

About Fancybox and PHP Mysql

my problem is that the only first word from the database can be called in fancy box's title/caption..

here's my code

for example the name in the product_name is "Ben What"

                                echo '<td><li><a id="example1" href='. $row['product_image_url'] . ' title=' . $row['product_name'] .' ><img src=' . $row['product_image_url'] . ' ></img></a></li></td>';

if i view the Picture it will only display Ben in the Title/Caption not Ben What

is t开发者_运维知识库here a way that i can view the whole words??

thank you


You need to quote the value of the title attribute in the generated html.

... ' title="'.$row['product_name'].'" >' ...
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜