PHP Display Image (URL from Database)
Hi, I've recnetly begun learning PHP and seem to be progressing well. However, slightly stuck. I have an image URL in my database that I want to display but it is not. What am I doing wrong? Please find my code below. Really hope someone can point out what I'm doing wrong.
<?php
include 'connectionTest.php';
$prod = "SELECT titleImg FROM pages WHERE id=1";
?>
<img src="<?php echo $prod['titleImg'];?>" alt="The Salons" width="123" height="18" />
Look forward to some help ![]()
