Fix query

This commit is contained in:
Vincent
2024-06-04 21:29:47 +02:00
parent eef73dd92b
commit de08926fe7
4 changed files with 14 additions and 6 deletions

View File

@@ -12,7 +12,9 @@ class Artistes extends CI_Controller {
public function index(){
$genre = $this->input->get('genre');
$order = $this->input->get('order');
$artists = $this->model_music->getArtists($genre, $order);
$query = $this->input->get('query');
$artists = $this->model_music->getArtists($genre, $order, $query);
$genres = $this->model_music->researchtype();
$is_logged_in = $this->session->userdata('logged_in');

View File

@@ -13,7 +13,10 @@ class Music extends CI_Controller {
$genre = $this->input->get('genre');
$order = $this->input->get('order');
$artist = $this->input->get('artist');
$musics = $this->model_music->getMusics($genre, $order, $artist);
$query = $this->input->get('query');
$musics = $this->model_music->getMusics($genre, $order, $artist, $query);
$genres = $this->model_music->researchtype();
$artists = $this->model_music->nameArtist();