I am trying to show the users what is in the database and ask him if he still wants to insert the information he entered, but I am struggling to get their data to my controller.
This is what I have so far:
Controller
$result = $this->call_model->checkCallExists($callInfo);
if($result == true) {
Model
function checkCallExists($callInfo)
{
//pre($callInfo);
//die;
$this->db->select("*");
$this->db->from("tbl_calls");
$this->db->where("type_of_equipment", $callInfo['type_of_equipment']);
$this->db->where("fk_location_id", $callInfo['fk_location_id ']);
$this->db->where("fk_status_id", $callInfo['fk_status_id ']);
$query = $this->db->get();
if ($query->num_rows() > 0){
$retun_array['data']= $query->result_array();
return false;
}
else{
return true;
}
}
This is what I get when doing a dump in my model
I want to display it in table form with a button to cancel or insert into the database, but I am not getting the data to my controller.
Thank you in advance.
