modules/archi/includes/archiAdresse.class.php
public function getIdVille($idQuartier)
    {
        $idVille;
        if (!isset($idQuartier) && $idQuartier != '') {
            echo "Error while getting city id, no sub neighborhood informations were specified for this request.";
        } else {
            $req = "
    				SELECT idVille
    				FROM quartier
    				WHERE idQuartier = ".$idQuartier."
    				";
            $res = $this->connexionBdd->requete($req);
            $fetch = mysql_fetch_assoc($res);
            $idVille = $fetch['idVille'];
        }
        return $idVille;
    }
public function getIdVille($idQuartier)
    {
        $idVille;
        if (!isset($idQuartier) && $idQuartier != '') {
            echo "Error while getting city id, no sub neighborhood informations were specified for this request.";
        } else {
            $req = "
    				SELECT idVille
    				FROM quartier
    				WHERE idQuartier = ".$idQuartier."
    				";
            $res = $this->connexionBdd->requete($req);
            $fetch = mysql_fetch_assoc($res);
            $idVille = $fetch['idVille'];
        }
        return $idVille;
    }
public function getIdVille ( $ idQuartier ) { $ idVille ; if ( ! isset ( $ idQuartier ) && $ idQuartier != '' ) { echo "Error while getting city id, no sub neighborhood informations were specified for this request." ; } else { $ req = "
    				SELECT idVille
    				FROM quartier
    				WHERE idQuartier = " . $ idQuartier . "
    				" ; $ res = $ this -> connexionBdd -> requete ( $ req ) ; $ fetch = mysql_fetch_assoc ( $ res ) ; $ idVille = $ fetch [ 'idVille' ] ; } return $ idVille ; }
Get the id of the city from neighborhood id

@param  $idQuartier : neighborhood id
@return $idVille : id of the city
Get the id of the city from neighborhood id