initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/** Bestedingopmerkingen_model januari 2016 */
|
||||
|
||||
class Bestedingopmerkingen_model extends MY_Model{
|
||||
|
||||
|
||||
protected $tablename = 'tb_bestedingopmerkingen';
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$models = array('');
|
||||
$this->load->model($models);
|
||||
}
|
||||
function getopmerking($orgid, $jaarnr){
|
||||
$this->sql = "SELECT id AS opmerkingID, opmerking
|
||||
FROM tb_bestedingopmerkingen
|
||||
WHERE organisatie_id = {$orgid}
|
||||
AND kalenderjaarnr = {$jaarnr}";
|
||||
$result=$this->get_query_row();
|
||||
if ($result) {return $result->opmerking;}
|
||||
else {return '';};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user