PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
samir_gambler
Forum Newbie
Posts: 19 Joined: Wed Mar 31, 2010 9:03 am
Post
by samir_gambler » Wed May 19, 2010 6:03 am
I want to display image title as mouse is hovered over it, but when mouse is hovered it is only displaying name before space only
Code: Select all
<img src="http://localhost/photo/components/com_virtuemart/shop_image/product/resized/Big_Sky_4b6fe7473bf0d_90x90.jpg" height="74" width="90" class="browseProductImage" border="0" title=<?php echo($row->product_name); ?> alt=<?php echo($row->product_name); ?>/>
the value of $row->product_name is "Cap kitti". but when mouse is hovered over the image only "Cap" is shown.
roders
Forum Commoner
Posts: 68 Joined: Tue Oct 20, 2009 9:29 am
Post
by roders » Wed May 19, 2010 6:53 am
its supposed to be
Code: Select all
title="<?php echo($row->product_name); ?>" same for
Code: Select all
alt="<?php echo($row->product_name); ?>"
klevis miho
Forum Contributor
Posts: 413 Joined: Wed Oct 29, 2008 2:59 pm
Location: Albania
Contact:
Post
by klevis miho » Wed May 19, 2010 6:54 am
Replace this with this:
Code: Select all
<img src="http://localhost/photo/components/com_virtuemart/shop_image/product/resized/Big_Sky_4b6fe7473bf0d_90x90.jpg" height="74" width="90" class="browseProductImage" border="0" title="<?php echo($row->product_name); ?>" alt="<?php echo($row->product_name); ?>"/>