mirror of
https://grond.iut-fbleau.fr/stiti/SAE_2.02
synced 2024-11-10 05:11:42 +01:00
16 lines
367 B
PHP
16 lines
367 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class Model_artist extends CI_Model {
|
|
public function __construct(){
|
|
$this->load->database();
|
|
}
|
|
|
|
public function getArtisteById($artiste_id){
|
|
$query = $this->db->query("SELECT * FROM artist WHERE id = ?", array($artiste_id));
|
|
return $query->row();
|
|
}
|
|
|
|
}
|
|
?>
|