dgnzcn Posted September 12, 2010 Share Posted September 12, 2010 Hi, This is a image tooltip from database. but I have got the problem, Not Working! How can i fix it. <a href="index.php?MD=urundetay&resimid=<?php echo $row_uruns['resimid']; ?>"><img src="urun_resim/<?php echo $row_image['image']; ?>" width="150" border="0" /></a> Quote Link to comment https://forums.phpfreaks.com/topic/213251-simple-link-problem/ Share on other sites More sharing options...
fortnox007 Posted September 12, 2010 Share Posted September 12, 2010 what is not working exactly? How does the link show up in your browser after clicking? What happends if you press the link? what are the values expected in the fields retrieved from the database? Maybe also show some code around it so we can see if you didn't accidentally have php tags within php tags Quote Link to comment https://forums.phpfreaks.com/topic/213251-simple-link-problem/#findComment-1110408 Share on other sites More sharing options...
fortnox007 Posted September 12, 2010 Share Posted September 12, 2010 Btw border as inline css for an image is invalid, and your missing an alt tag So it should more like: <img src="urun_resim/<?php echo $row_image['image']; ?>" width="150" alt="whatever" /> a height attribute would be nice too, but a small tip strip elements apart test them as elements apart and than combine them if you have this. Quote Link to comment https://forums.phpfreaks.com/topic/213251-simple-link-problem/#findComment-1110411 Share on other sites More sharing options...
dgnzcn Posted September 13, 2010 Author Share Posted September 13, 2010 This is my product image tooltip and product link codes from database... <a href="index.php?DM=urundetay&modelid=<?php echo $row_uruns['modelid']; ?>" data-tooltip="sticky1"><?php echo $row_uruns['marka']; ?></a> <div id="mystickytooltip" class="stickytooltip"> <div style="padding:5px"> <div id="sticky1" class="atip" style="width:150px"><img src="urun_resim/<?php echo $row_uruns['image']; ?>" width="150" /></div> Product Links are coming correct from database, but tooltip images not correct, always showing first product image ! how can i fix it ? Edit : I Attached image, you can see the problem.. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/213251-simple-link-problem/#findComment-1110450 Share on other sites More sharing options...
dgnzcn Posted September 13, 2010 Author Share Posted September 13, 2010 anybody help me ? Quote Link to comment https://forums.phpfreaks.com/topic/213251-simple-link-problem/#findComment-1110491 Share on other sites More sharing options...
wildteen88 Posted September 13, 2010 Share Posted September 13, 2010 Is this code being ran within a loop? You need to show more code. Quote Link to comment https://forums.phpfreaks.com/topic/213251-simple-link-problem/#findComment-1110501 Share on other sites More sharing options...
dgnzcn Posted September 13, 2010 Author Share Posted September 13, 2010 ok. here my codes : <?php do { ?> <table width="170" border="0"> <tr> <td><img src="images/AddToFavoritesIcon.gif" width="8" /></td> <td align="left"><a href="index.php?DM=urundetay&modelid=<?php echo $row_yenilerr['modelid']; ?>" data-tooltip="sticky1"class="kucuk_yazilar"><?php echo $row_yenilerr['marka']; ?> <?php echo $row_yenilerr['urunad']; ?></a> <div id="mystickytooltip" class="stickytooltip"> <div style="padding:5px"> <div id="sticky1" class="atip" style="width:150px"> <img src="urun_resim/<?php echo $row_uruns['image']; ?>" width="150"></div></td> </tr> </table> <?php } while ($row_yenilerr = mysql_fetch_assoc($yenilerr)); ?> Quote Link to comment https://forums.phpfreaks.com/topic/213251-simple-link-problem/#findComment-1110525 Share on other sites More sharing options...
wildteen88 Posted September 13, 2010 Share Posted September 13, 2010 Where is the variable $row_uruns['image'] definded? Quote Link to comment https://forums.phpfreaks.com/topic/213251-simple-link-problem/#findComment-1110580 Share on other sites More sharing options...
dgnzcn Posted September 13, 2010 Author Share Posted September 13, 2010 I am not understand ?? Quote Link to comment https://forums.phpfreaks.com/topic/213251-simple-link-problem/#findComment-1110672 Share on other sites More sharing options...
dgnzcn Posted September 14, 2010 Author Share Posted September 14, 2010 Where is the variable $row_uruns['image'] definded? OK. Here defined : <div id="sticky1" Quote Link to comment https://forums.phpfreaks.com/topic/213251-simple-link-problem/#findComment-1110817 Share on other sites More sharing options...
gamesmstr Posted September 14, 2010 Share Posted September 14, 2010 What he means is, $row_uruns['image'] has to have a value assigned to it before it can be used. Where is that value being assigned? Quote Link to comment https://forums.phpfreaks.com/topic/213251-simple-link-problem/#findComment-1110828 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.