diff --git a/site/accesBase.php b/site/accesBase.php index e45f7f7..73c7be2 100644 --- a/site/accesBase.php +++ b/site/accesBase.php @@ -282,5 +282,15 @@ $array[] = $element[$column]; } return $array; - } + } + + function getLegend($nom) + { + $db = connexion(); + $query = "SELECT type, unite FROM capteurs WHERE nom = '$nom'"; + $result = pg_query($db, $query) or die("La requ te a echou : ".pg_last_error()); + $tab = pg_fetch_assoc($result); + deconnexion($db); + return $tab; + } ?> diff --git a/site/formGraphe.php b/site/formGraphe.php index af6096a..9dc3048 100644 --- a/site/formGraphe.php +++ b/site/formGraphe.php @@ -10,7 +10,7 @@ $date_max = $maxs[0];