29 lines
738 B
PHP
29 lines
738 B
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/**Antwoordopties_model april 2021 */
|
|
|
|
class Antwoordopties_model extends MY_Model{
|
|
|
|
protected $tablename = 'tb_antwoordopties';
|
|
|
|
function __construct(){
|
|
parent::__construct();
|
|
$models = array('');
|
|
$this->load->model($models);
|
|
}
|
|
|
|
|
|
function getopties($id){
|
|
$this->sql="SELECT id, optie, omschrijving
|
|
FROM tb_antwoordopties
|
|
WHERE type_nr = {$id} ";
|
|
return $this->get_query_result();
|
|
}
|
|
|
|
function getAntwoordopties($scoretype){
|
|
$this->sql="SELECT id, optie, omschrijving, score_value, type_nr
|
|
FROM tb_antwoordopties
|
|
WHERE type_nr = {$scoretype} ";
|
|
return $this->get_query_result();
|
|
}
|
|
} |