I am learning PHP, I decided to implement a simple gallery. Everything works as you would like while the pictures are a bit :), but if there are a hundred of them then troubles arise. On the page, instead of the picture menu, instead of the content, too, an image. When you click on the picture in the menu, the image should change, but without reloading the page itself.
How to implement it using only PHP?
Thoroughly you can not explain, just an approximate direction, then I myself!
document.getElementById('изображение').src = '/get_image.php?rid='+Math.random();- StasHappy