I'm attempting to reference the name of an image from my SQL database. This needs to happen within the HTML 'src' attribute.
All of my other queries are working fine, such as...
Code:
echo "<h2>" . $myrow['title'] . "</h2>";
but when I'm trying to add that query to an HTML attribute, it's a no go. I'm not sure how to format it. This is what I have...
Code:
echo "<img width=\"131\" height=\"75\" alt=\"\" src=\"images/news/" . $myrow['pic_name'] . "\">";
If there's an easier way to achieve this, I'd love to know.
Thanks in advance