How to upload an image through its path stored in the database?

Asked

Viewed 71 times

0

I exported a database from a website here at the company where I work, and imported that same database into a xampp server, in one of the database tables has a picture column that is a varchar field that contains the path from where the images are. The question is, how can I upload these images to my local server ? I took the images from the site and put it in a folder inside my project in htdocs, but still nothing appears.

The table in phpmyadmin ta so

  • name - Refrigerator
  • value - 10000
  • Observation - Two Door Brastemp Refrigerator, silver gray color...
  • date - 2019-03-31
  • image - Catalog/gel.jpg (varchar)

when I open the site on localhost it appears only Catalog/gel.jpg instead of appearing the image, as I can resolve this ?

1 answer

0


You’re putting inside the attribute src tag img? If yes, then you have to look in the way of where the code file is, and the image.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.