public int deleteArticle(int num, String passwd) throws Exception {
		Connection conn = null;
		PreparedStatement pstmt = null;
		ResultSet rs= null;
		String dbpasswd="";
		int x=-1;
		try {
			conn = getConnection();

			pstmt = conn.prepareStatement( "select passwd from board where num = ?");	//	public int deleteArticle(int num, String passwd) throws Exception {
			pstmt.setInt(1, num);
			rs = pstmt.executeQuery();

			if(rs.next()){
				dbpasswd= rs.getString("passwd");
				if(dbpasswd.equals(passwd)){
				pstmt = conn.prepareStatement("delete from board where num=?");	//	public int deleteArticle(int num, String passwd) throws Exception {
				pstmt.setInt(1, num);
				pstmt.executeUpdate();
				x= 1; //�ۻ��� ����
			}else
				x= 0; //��й�ȣ Ʋ��
			}
		} catch(Exception ex) {
			ex.printStackTrace();
		} finally {
			if (rs != null) try { rs.close(); } catch(SQLException ex) {}
			if (pstmt != null) try { pstmt.close(); } catch(SQLException ex) {}
			if (conn != null) try { conn.close(); } catch(SQLException ex) {}
		}
		return x;
	}	//	int deleteArticle(int num, String passwd)