Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 41 | Rev 284 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 41 Rev 46
Line 53... Line 53...
53
							$this->proteger($params['id_espece']).','.
53
							$this->proteger($params['id_espece']).','.
54
							$this->proteger($params['id_station']).','.		
54
							$this->proteger($params['id_station']).','.		
55
							$this->proteger($params['individu_nom']).')';	
55
							$this->proteger($params['individu_nom']).')';	
56
		$creation_individu = $this->executerRequeteSimple($requete_creation_individu);
56
		$creation_individu = $this->executerRequeteSimple($requete_creation_individu);
Line -... Line 57...
-
 
57
		
57
		
58
    	
58
		if(!$creation_individu) {
59
    	if(!$creation_individu) {
-
 
60
    		$retour['erreurs'] = 'erreur d\'insertion';
-
 
61
    	} else {
59
    		// TODO: comment gère t'on les erreurs ?
62
    		$retour['id_nouvel_individu'] = $this->renvoyerDernierIdInsere();
Line 60... Line 63...
60
    	}
63
    	}
61
    	
64
    	
Line 62... Line 65...
62
    	$this->envoyer();
65
    	$this->envoyer($retour);
63
    }
66
    }
64
   
67