initial commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/**Schooljaren_model mei 2015 */
|
||||
|
||||
class Schooljaren_model extends MY_Model{
|
||||
|
||||
|
||||
protected $tablename = 'tb_schooljaren';
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$models = array('');
|
||||
$this->load->model($models);
|
||||
}
|
||||
function getschooljaren(){
|
||||
$this->sql = "SELECT schooljaarnr, naam, start, eind
|
||||
FROM tb_schooljaren
|
||||
ORDER BY schooljaarnr DESC";
|
||||
return $this->get_query_result();
|
||||
}
|
||||
|
||||
function getschooljaar($schooljaarnr){
|
||||
$this->sql = "SELECT id, schooljaarnr, naam, start, eind
|
||||
FROM tb_schooljaren
|
||||
WHERE schooljaarnr = {$schooljaarnr}";
|
||||
return $this->get_query_result();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user