I am trying to retrieve an image that is stored in a database.. I am just trying to print the name of the image right now before I even try showing the image just so I can get better at this...
right now I have a table called categories with the fields categories_id, categories_image
This is my query in php:
<?php
$category_image_raw = "select c.categories_image from categories c where c.categories_id in(41)";
echo $category_image_raw['categories_image']; ?>
the field category_id 41 has an image uploaded to it. this is not working. what am I missing?