I have a MySQL database query in PHP where I save the path in the database and the image in a folder. The query brings up the image and below a comment, only it has comments without image that displays the img
tag. I wanted a way when the img
tag has no image, does not display anything.
I did not want the tag to appear when it was null just the comment.