Can not display the picture.
got the path 'C:/Server/data/htdocs/bwt/public/img/5ae1c68e8fe7e5.01671273.jpg'
inserted <img scr="<?php echo $_SERVER["DOCUMENT_ROOT"].'/public/img/'.$value['photo']; ?>" alt=""> but no picture = (I use mvc. Maybe there is a problem in it? I already got the path directly, but the picture is not displayed
|
1 answer
You specify the address of the file on the hard disk (your scripts on this server may refer to this address, but not as a user by URI). Try to specify:
<img scr="/bwt/public/img/'.$value['photo']; ?>" alt='' /> - I connect css and it works
<link href="/public/css/style.css" type="text/css" rel="stylesheet">I also try the picture<img scr="/public/img/one.jpg'" alt='' />does not work. - Andrii pm - Andrii, and what does the console (in the browser) write? - Node_pro
|