image title

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

Post Reply
samir_gambler
Forum Newbie
Posts: 19
Joined: Wed Mar 31, 2010 9:03 am

image title

Post by samir_gambler »

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

Re: image title

Post by roders »

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:

Re: image title

Post by klevis miho »

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); ?>"/>
samir_gambler
Forum Newbie
Posts: 19
Joined: Wed Mar 31, 2010 9:03 am

Re: image title

Post by samir_gambler »

thanx it worked...... :D
Post Reply