SAE_2.02/CodeIgniter-3.1.13/application/models/Model_artist.php
2024-05-20 22:42:38 +02:00

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();
}
}
?>