public FoodDataBean getArticle(int idx) throws Exception{
		Connection conn = null;
		PreparedStatement pstmt = null;
		ResultSet rs = null;
		FoodDataBean article = null;
		String sql="";
		try{
			conn = getConnection();
			sql = "update food set read_count = read_count + 1 where idx=?";
			pstmt = conn.prepareStatement(sql);
			pstmt.setInt(1, idx);
			pstmt.executeUpdate();
			sql = "select * from food where idx=?";
			pstmt = conn.prepareStatement(sql);
			pstmt.setInt(1, idx);
			rs = pstmt.executeQuery();
			if(rs.next()){
				article = new FoodDataBean();
				article.setArea_idx(rs.getInt("area_idx"));
				article.setIdx(rs.getInt("idx"));
				article.setNickname(rs.getString("nickname"));
				article.setId(rs.getString("id"));
				article.setTitle(rs.getString("title"));
				article.setWdate(rs.getTimestamp("wdate"));
				article.setRead_count(rs.getInt("read_count"));
				article.setRef(rs.getInt("ref"));
				article.setStep(rs.getInt("step"));
				article.setDepth(rs.getInt("depth"));
				article.setContent(rs.getString("content"));
				article.setRecommand_count(rs.getInt("recommand_count"));
				article.setRecommand(rs.getInt("recommand"));
				article.setNon_recommand(rs.getInt("non_recommand"));
			
			}
		}catch(Exception ex){
			ex.printStackTrace();
		}finally{
			if(rs != null){
				try{rs.close();}
				catch(SQLException e){e.printStackTrace();}
			}
			if(pstmt != null){
				try{pstmt.close();}
				catch(SQLException e){e.printStackTrace();}
			}
			if(conn != null){
				try{conn.close();}
				catch(SQLException e){e.printStackTrace();}
			}
		}
		return article;
	}