[eluser]phpProgrammerToBe[/eluser]
good day!
is it possible to echo the query result in controller? if possible how?
controller
Code:
$data['sql'] = $this->td_model->getMaxPoint();
//echo $data['sql']
//print_r($data);
//var_dump($data);
model
Code:
function getMaxPoint()
$sql=$this->db->select('max_Point')->where('code',$this->input->post('code'))->get('Stations');
return $sql;
thanks!