Jump to content

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/213251-simple-link-problem/#findComment-1110408
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/213251-simple-link-problem/#findComment-1110411
Share on other sites

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]

Link to comment
https://forums.phpfreaks.com/topic/213251-simple-link-problem/#findComment-1110450
Share on other sites

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)); ?>

Link to comment
https://forums.phpfreaks.com/topic/213251-simple-link-problem/#findComment-1110525
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.