26 lines
545 B
PHP
26 lines
545 B
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/** Dq_model januari 2015 */
|
|
|
|
class Dq_model extends MY_Model{
|
|
|
|
|
|
protected $tablename = 'tb_dq';
|
|
|
|
function __construct(){
|
|
parent::__construct();
|
|
$models = array('');
|
|
$this->load->model($models);
|
|
}
|
|
|
|
function getaantallen($orgid, $schoolsoort){
|
|
$this->sql="SELECT groep12, groep38
|
|
FROM tb_dq
|
|
WHERE organisatie_id = {$orgid}
|
|
AND schooltype = '{$schoolsoort}'
|
|
ORDER BY volgorde DESC
|
|
LIMIT 1";
|
|
return $this->get_query_row();
|
|
}
|
|
}
|
|
|