Hey guys, I have a table that contains information on products, I want to add an image to each product, and am not sure on which is the best way to do this. i see that there is an image data type in SQL server, some research tells me this is not an advised approach. i was hoping that I could just have a folder in my project called database images and then link each product to its own in image in this folder, so when a query pulls all the info on the product out, then an image is also added to the output.
Thanks. I changed my datatype to varchar and added this in the field of the picture column:
img src=“url”
then in my out put I run this:
echo '<br/> picture: '.$row[‘picture’];
But it only displays the text stored instead of the grabbing the image from the directory. Is there something wrong with how I am listing the image directory?
Thanks. I cannot get it to work, but I will keep trying, I cant display it by using the source name, it had to be like this somehow as there will be many images: