-3
function cadastra_pesquisa() {
$this->load->library('form_validation');
$this->form_validation->set_rules('d_c_p_p', 'Domínio do conteúdo por parte do palestrante', 'required');
$this->form_validation->set_rules('i_c_b', 'Instalações e coffee break', 'required');
$this->form_validation->set_rules('h_p_c_g', 'Habilidade do palestrante na condução do grupo', 'required');
$this->form_validation->set_rules('a_g_p', 'Avaliação Geral da Palestra', 'required');
$this->form_validation->set_rules('c_a', 'Conteúdo Apresentado', 'required');
if ($this->form_validation->run() == FALSE) {
$data['info_sis'] = $this->db->get('info_sismarket')->result();
$this->load->view('header_html');
$this->load->view('header_view');
$this->load->view('pesquisa/pesquisa_satisfacao_erro_view');
$this->load->view('footer_view', $data);
$this->load->view('footer_html');
} else {
$pesquisa['d_c_p_p'] = $this->input->post('d_c_p_p');
$pesquisa['i_c_b'] = $this->input->post('i_c_b');
$pesquisa['h_p_c_g'] = $this->input->post('h_p_c_g');
$pesquisa['a_g_p'] = $this->input->post('a_g_p');
$pesquisa['c_a'] = $this->input->post('c_a');
$pesquisa['s_c'] = $this->input->post('s_c');
$this->load->model('usuario_model');
$this->usuario_model->GravaPesquisa($pesquisa);
$this->load->view('header_html');
$this->load->view('header_view');
$this->load->view('pesquisa/pesquisa_satisfacao_ok_view');
$this->load->view('footer_view');
$this->load->view('footer_html');
}
}
has any specific problem you are encountering? In the current form, the question is difficult to answer.
– Maniero
Hello bigown! Need to generate a report with information coming from the bank.
– ThiagoDeveloper
You need to give more details, what you’ve done, where the problem is. There’s no way people can give a real answer know better what you’re trying to do.
– Maniero
Please edit the question by putting more information, where you are in solving the problem and where you need to get.
– Alexandre Marcondes
Ok! @bigown, I will try to explain my question better, so that you can help me! Thanks!
– ThiagoDeveloper