Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/253.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
表代码中的php图像链接_Php_Html_Image_Hyperlink - Fatal编程技术网

表代码中的php图像链接

表代码中的php图像链接,php,html,image,hyperlink,Php,Html,Image,Hyperlink,我的php动态表中有这段代码 <?php echo'<a href="http://'.$row_rsInventory['PHOTO'].'"><img src="../images/a-camera-icon.png">'.$row_rsInventory['PHOTO'].'</a>'; ?> 当代码运行时,它会在“照片”字段中将链接显示为图像,将文本显示为超链接。我需要更改什么,以便在照片字段中将链接显示为图像。非常感谢您在这方面提供

我的php动态表中有这段代码

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


当代码运行时,它会在“照片”字段中将链接显示为图像,将文本显示为超链接。我需要更改什么,以便在照片字段中将链接显示为图像。非常感谢您在这方面提供的帮助。

只需删除您为anchor
$row\u rsInventory['PHOTO']提供的文本。
这样做

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

删除锚文本
$row\u rsInventory['PHOTO']
使用以下任一代码


您能否解释一下照片字段的确切含义,以及您希望在那里看到的内容,链接图像本身或普通相机图标?