doulai7239 2016-08-02 18:57
浏览 35

表格代码中的PHP图像链接

I have this code in my php dynamic table

<?php echo'<a href="http://'.$row_rsInventory['PHOTO'].'"><img src="../images/a-camera-icon.png">'.$row_rsInventory['PHOTO'].'</a>'; ?>

When the code runs it displays the link as an image and the text as a hyperlink in the PHOTO field. What do I need to change so that it just shows the link as an image in the PHOTO field. I appreciate any help on this.

  • 写回答

2条回答 默认 最新

  • doujiaci7976 2016-08-02 18:59
    关注

    Just remove the text you have for anchor .$row_rsInventory['PHOTO']. this way

    <?php echo'<a href="http://'.$row_rsInventory['PHOTO'].'">
            <img src="../images/a-camera-icon.png">
    </a>'; ?>
    
    评论

报告相同问题?