Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function reenvioSenha($dados) {
- $this->db->select("email,verifica_key");
- $this->db->from("usuarios");
- $this->db->where_in("email",$dados);
- $query = $this->db->get();
- if($query->num_rows() > 0) {
- foreach ($query->result() as $key => $value) {
- $teste = $value->verifica_key;
- }
- return $teste;
- } else {
- return false;
- }
- }
- public function reenviar_senha() {
- $dados = array (
- 'email' => $this->input->post('email')
- );
- if($this->Usuarios_model->reenvioSenha($dados) == true) {
- var_dump($dados);
- var_dump($teste);
- exit;
- }
- }
Add Comment
Please, Sign In to add comment