F
F
Flasher2015-09-30 11:35:07
PHP
Flasher, 2015-09-30 11:35:07

The image is not shown when outputting from the database, where is the error?

In HTML, the result looks like this, but the image is simply not displayed. Although all paths are correct. Perhaps it is necessary to give the path somehow differently, but the output of the path is the same. There is a picture at this address + if you insert the path into the total commander, it opens, but a locally empty square:

<img src="C:/webserver/data/htdocs/site/www/_uploads/content/photo_02.png" width="140" height="140" />

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Smirnov, 2015-09-30
@Flasher

Err... src="C:/webserver/data/htdocs/site/www/_uploads/content/photo_02.png" - seriously?
Should be src="/_uploads/content/photo_02.png"

D
Dmitry Kovalsky, 2015-09-30
@dmitryKovalskiy

Because the client machine does not have this picture at the specified src.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question