I make the query:
SELECT cat_img, descripcion FROM 'CAT_PRODUCTO' WHERE id_gal BETWEEN 1 AND 7
Now I want to assign the result to different variables according to id_gal
example:
$catimg_1: imagen extraída del registro id_gal 1
$catimg_2: imagen extraída del registro id_gal 2
and so on all this with PHP PDO I hope to be clear with my doubts. I will appreciate any help