I have an album, so I click on the album, it's just to show the photos that are in the database with the id of the selected album, I click on the album and the photos from the album with the selected id and the id of the album are coming. another album too, come all photos in 1 album only, my select is like this:
select fotos.*, albuns.album_name from fotos
INNER JOIN albuns ON fotos.foto_album = albuns.album_id
I get the album_id variable from the page get:
$album_id = $_GET['id'];