mirror of
https://grond.iut-fbleau.fr/stiti/SAE_2.02
synced 2024-11-13 22:31:40 +01:00
17 lines
402 B
PHP
17 lines
402 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class Cover_model extends CI_Model {
|
|
|
|
public function __construct() {
|
|
parent::__construct();
|
|
$this->load->database();
|
|
}
|
|
|
|
public function get_covers() {
|
|
$query = "SELECT id, jpeg FROM cover LIMIT 4";
|
|
$result = $this->db->query($query);
|
|
return $result->result_array();
|
|
}
|
|
}
|