Commit de Louay : Correction de bug
This commit is contained in:
15
CodeIgniter-3.1.13/application/models/Model_artist.php
Normal file
15
CodeIgniter-3.1.13/application/models/Model_artist.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?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();
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user