# Image not showing although other variables are

**URL:** <https://www.phphelp.com/t/image-not-showing-although-other-variables-are/36652>\
**Category:** General PHP Help\
**Created:** [November 19, 2025, 8:10pm UTC](https://www.phphelp.com/t/image-not-showing-although-other-variables-are/36652 "2025-11-19T20:10:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![babystarman](https://www.phphelp.com/user_avatar/www.phphelp.com/babystarman/32/4453_2.png) [@babystarman](https://www.phphelp.com/u/babystarman)\
**Post date:** [November 19, 2025, 8:10pm UTC](https://www.phphelp.com/t/image-not-showing-although-other-variables-are/36652/1 "2025-11-19T20:10:35Z")

</div>

I have a page that gets 4 bits of info from a small database. I know it works because all of the other variables are echoed properly. The one that _doesnt_ get echoed is the variable for the picture. I get the ‘broken image’ logo where it should be. I have checked the field names, variable names, and path to the image. All are correct, the image is where it is supposed to be,

 ![Capture](https://www.phphelp.com/uploads/default/original/2X/3/32141e2a8bc41da1d62e5ee779612777e48e30fd.gif)  
so I am guessing I am not coding the image tag right. Here we are:

```auto
<span style="font-size: 18pt ; letter-spacing: 0.05em"><?php echo $theauth. ": ".$thetitle; ?></span><br/><br/>	
<img src="<?php echo $thepic;?>" /><br/><br/>
<?php echo $thedesc; ?>
```

Author and title above the (missing) picture, (nonsense) description below it, where they should be - but no picture!

---

<div class="post-metadata">

**Author:** ![phdr](https://www.phphelp.com/letter_avatar_proxy/v4/letter/p/91b2a8/32.png) [@phdr](https://www.phphelp.com/u/phdr)\
**Post date:** [November 19, 2025, 10:04pm UTC](https://www.phphelp.com/t/image-not-showing-although-other-variables-are/36652/2 "2025-11-19T22:04:24Z")

</div>

> [@babystarman](#):
>
> path to the image

Is that part of the $thepic value or a separate value that needs to be output in addition to $thepic value?

---

<div class="post-metadata">

**Author:** ![babystarman](https://www.phphelp.com/user_avatar/www.phphelp.com/babystarman/32/4453_2.png) [@babystarman](https://www.phphelp.com/u/babystarman)\
**Post date:** [November 20, 2025, 9:56am UTC](https://www.phphelp.com/t/image-not-showing-although-other-variables-are/36652/3 "2025-11-20T09:56:10Z")

</div>

OK, sorted! In fact (fingers crossed and deep breath…) I believe _everything_ is now working properly, especially online, and just basically needs a few minor tweaks here and there. Many thanks for all your advice and assistance, without which I would still be up the proverbial creek without a paddle! One day I would like to somehow give as well as take.
