开发者

About Fancybox and PHP Mysql

开发者 https://www.devze.com 2023-02-19 00:37 出处:网络
my problem is that the only first word from the database can be called in fancy box\'s title/caption..

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

精彩评论

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