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

@param  $idVille : id of the city
@return $idPays : id of the country
Get id of the country from city id