0
I have an album, as soon as I click on the album, is to appear only the photos that are in the database with the id of the selected album, I click on the album and this coming the photos of the album with the selected id and the id of the other 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
picked up the album_id variable by get from the page:
$album_id = $_GET['id'];
Interesting that you don’t even use the variable
$album_id
in the SQL clause. There should be no statement Where there indicating theid
of the album?– Woss
That’s right, right now, it worked, thank you !
– Tiago Teixeira