<img id="img" src="http://localhost/uc_server/avatar.php?uid=2&size=big" width="110px" height="160px" />其中uid=2 其实是想给uid赋值为超全局变量$_SESSION的值,怎么在src属性中将uid=“超全局变量$_SESSION”的值
1 回答
逗你玩而已
TA贡献38条经验 获得超6个赞
<?php
$directoryAsset = isset($_SESSION['what'])?'upload/customers/'.$_SESSION['what']:'';
?>
src="//localhost/uc_server/avatar.php?uid=$directoryAsset&size=big"
- 1 回答
- 0 关注
- 1769 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消