Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //----------------------------------Model
- public function registrar($username,$email,$password,$confirm_password)
- {
- $this->has= crypt($password);
- $this->has_con= crypt($confirm_password);
- $p="ok";
- $registro=$this->conexion->conexion->query("insert into registro_por (nombre, correo, pass, conf_pass) values( '$username','$email','$this->has','$this->has_con')");
- try{
- if($registro)
- {
- return $p;
- }else{
- throw new Exception("Fallos la ejecución");
- return false;
- }
- }catch(Exception $e){
- echo 'Message: '.$e->getMessage();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement