vraiment beau boulot

This commit is contained in:
2024-06-10 14:08:26 +02:00
parent c61c485651
commit 17a95f32ce
3 changed files with 64 additions and 0 deletions

View File

@@ -17,4 +17,17 @@ class Model_music extends CI_Model {
);
return $query->result();
}
public function getArtistes(){
$query = $this->db->query(
"SELECT artist.id AS artistId, artist.name AS artistName, album.name AS albumName, album.year, cover.jpeg
FROM album
INNER JOIN artist ON album.artistId = artist.id
JOIN cover ON cover.id = album.coverId
GROUP BY artist.name, album.year
"
);
return $query->result();
}
}