private int getIDLastMedia()
	{
		Statement st = null;
		ResultSet result = null;
		String req = "";
		int id = -1;
		
		try 
		{
			st = cnx();
			if(st == null) return -1;
			
			// RECUPERATION ID 
			req = "SELECT MAX(id) AS max FROM t_medias";
			result = (ResultSet) st.executeQuery(req);
			if(result.last() && result.getRow() == 1)  id = result.getInt("max");
			result.close();
			st.close();
		} catch (SQLException e) 
		{
			e.printStackTrace();
		}				
		return id;
	}