diff --git a/src/API.java b/src/API.java index ed6ca94..d35b4ef 100644 --- a/src/API.java +++ b/src/API.java @@ -34,28 +34,28 @@ public class API { // Retourne le nom de l'id entree public String getNom(int id) { return this.sharedObject.fetchAll( - "SELECT nom FROM Membres WHERE idCompte=" + id + "SELECT nom FROM " + this.TableDesMembres + " WHERE idCompte=" + id ).get(0); } // Retourne le prenom de l'id entree public String getPrenom(int id) { return this.sharedObject.fetchAll( - "SELECT prenom FROM Membres WHERE idCompte=" + id + "SELECT prenom FROM " + this.TableDesMembres + " WHERE idCompte=" + id ).get(0); } // Retourne l'adresse de telephone de l'id entree public String getAdresse(int id) { return this.sharedObject.fetchAll( - "SELECT adresse FROM Membres WHERE idCompte=" + id + "SELECT adresse FROM " + this.TableDesMembres + " WHERE idCompte=" + id ).get(0); } // Retourne le numero de telephone de l'id entree public String getPhone(int id) { return this.sharedObject.fetchAll( - "SELECT phone FROM Membres WHERE idCompte=" + id + "SELECT phone FROM " + this.TableDesMembres + " WHERE idCompte=" + id ).get(0); } @@ -186,4 +186,10 @@ public class API { ).get(0) , 10); } + + public void setGrups(int id, int where) { + this.sharedObject.updatRow( + "UPDATE " + this.TableDesGroupes + " SET idGrups=" + where + ) + } } \ No newline at end of file