再次这个用户个人资料网站难倒我...我想出了如何显示登录用户上传的图像,以用作显示图片。问题是我找不到一个简单的方法来调整图像显示后的大小。所以我从我的HTML页面中使用了一个图像保持器类型的脚本。现在我试图找出一种方法将PHP链接到图像的PHP链接到HTML图像代码中。基本上我的问题是,是否有办法将下面的脚本转换为PHP脚本或使其以HTML格式工作?将HTML链接转换为PHP链接?
<a class="img-thumbnail lightbox pull-left" href="" data-plugin-options='{"type":"image"}'>
<img class="img-responsive" width="215" src="link-to-the-image">
<span class="zoom">
<i class="icon icon-16 icon-white-shadowed icon-search"></i>
</span>
</a>
我试图让这个链接的图像上面的脚本中工作,因为这是我想显示的图像:
echo "http://basecentre.co.uk/user_bc_74hw438eryer90reh0e9rh83232_members/upload/".$_SESSION['photo']."";
试过以下,但没有运气,没有图片显示...
<a class="img-thumbnail lightbox pull-left" href="" data-plugin-options='{"type":"image"}'>
<img class="img-responsive" width="215" src="http://basecentre.co.uk/user_bc_74hw438eryer90reh0e9rh83232_members/upload/".$_SESSION['photo']."">
<span class="zoom">
<i class="icon icon-16 icon-white-shadowed icon-search"></i>
</span>
</a>
可能是因为它是HTML格式...呃。但我已经尝试把PHP括号之间的HTML和一切。 Confussed?
感谢您的帮助,我傻忘了“回声”!刚刚添加它,现在它工作完美,欢呼! – AidanPT