【发布时间】:2014-10-16 06:51:53
【问题描述】:
这是我的视图文件:-
<h1>Welcome <?php echo "$username " ?> </h1>
<h3>
<?php echo "your User Id is: $id "?></br>
<?php echo "your User name is: $username "?></br>
<?php echo "your Password is: $password"?></br>
<?php echo "your Profile picture is: $image"?></br>
</h3>
<img src="../files/<?php echo $image ?>" alt="Profile picture" width="100" height="130">
我的文件夹在应用程序文件夹之外。
【问题讨论】:
-
您是否为
$image获得了价值? -
查看您的浏览器控制台,如果图像没有丢失或输入错误(错误 404)
-
是的,我得到了 $image 的价值............
-
请详细说明你的文件结构..你可能没有得到图像路径。
-
$image的值是多少,该图像放在服务器上的什么位置(文件夹结构)?
标签: php html image codeigniter