Skip to content
Advertisement

How to pass image value from variable in statement to another PHP file

Hey so i`m trying to pass value from my PHP file where i pull the data from the database to another PHP file to an tag i have tried to display my images on the same file where i do my query and it does work but i need it in another file. thanks

JavaScript

This is my file where i fetch and can display images and i need the $img variable in another file

JavaScript

Update so i tried with session it did not work said that i have too many sessions i tried with function same deal did not wanna work is there any way that could be done with script? Thanks

Advertisement

Answer

ajax.php

JavaScript

index.php

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement