Why can't I see the picture in the browser?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
35 views
full-text articles loaded from the database fine but no picture.
in the browser - Failed to load resource: the server responded with a status of 404 (Not Found)

GET mysite.local/www/images/article_.png 404 (Not Found)
article.php:1 This page includes a password or credit card input in a non-secure context.
5ae8a033505fc491050238.jpeg5ae8a04801f97140968538.jpeg

full_article.php
<?php echo $title;?>
<?php echo $title;?><?php echo $full_text;?>



article.php

<?phprequire_once "start.php";$article = getArticle ($_GET["id"]);$title = $article["title"];$full_text = $article["full_text"];?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><?php echo $title;?><?phprequire_once "blocks/top.php";?><?phprequire_once "blocks/full_article.php";?><?phprequire_once "blocks/banners_240.php";?><?phprequire_once "blocks/footer.php";?>
by | 35 views

2 Answers

0 like 0 dislike
You need to add the id parameter in articles.php

<?php\rrequire_once "start.php";\r$article = getArticle ($_GET["id"]);\r$id = $article["id"];\r$title = $article["title"];\r$full_text = $article["full_text"];\r?>
by
0 like 0 dislike
I think the www in the link to the picture of excess. If the site is run on the server then the link will probably be like this :
mysite.local/images/article_.png
Katolog the www is usually the root of the site.
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
asked Apr 12, 2019 by Medelin0
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 20, 2019 by nkondalov
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
35,573 users