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 ?
i to query the database with php , thus, <?php echo $query['image'] ?>
– Felipe Sousa Canuto dos Santos
when I pass this inside the src of the img tag it is only appearing the value of the alt
– Felipe Sousa Canuto dos Santos
<?php echo "<img src='.. /image/". $query['image']." ' />"? > worked that way
– Felipe Sousa Canuto dos Santos
then the problem was just the way as I had stated in the answer, perfect.
– João Paulo Araujo