表代码中的php图像链接
我的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 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']
使用以下任一代码
您能否解释一下照片字段的确切含义,以及您希望在那里看到的内容,链接图像本身或普通相机图标?