Hi there!
On my page I show results that are stored in a database. These results are called using the mysqli_fetch_array function. Every result contains a button which can be pressed to gain more information about the specific result. If this button is pressed, a DIV will fade in, using javascript. At the corner of this DIV the user’s able to press a close button in order to make the DIV fade out. I need all the data that belongs to the corresponding button inside this DIV. It’s only one DIV. If the user clicks the 4th result (so let’s say ID=4), I want all details from ID 4 be displayed in the DIV. But when the button of the 9th result’s clicked (ID=9), I want all the details from ID 4 to be replaced by the details from ID 9, so inside this very same DIV.
How can I achieve this? The DIV and Array part is working, I just can’t get the details inside this DIV.