public static int updateUserInfo(String uid, String u_name, String u_qq, String u_Email, String u_favourite,
			String u_dis) {
		int result = 0;
		Connection con = DBUtil.getConnection();
		PreparedStatement pstmt = null;
		try {
			pstmt = con.prepareStatement("update mstx_user set u_name=?, u_qq=?, u_Email=?, u_hobby=?, u_dis=? where uid=?;");
			pstmt.setString(1, u_name);
			pstmt.setString(2, u_qq);
			pstmt.setString(3, u_Email);
			pstmt.setString(4, u_favourite);
			pstmt.setString(5, u_dis);
			pstmt.setInt(6, Integer.parseInt(uid));
			result = pstmt.executeUpdate();
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			try {
				if (pstmt != null) {
					pstmt.close();
					pstmt = null;
				}
			} catch (Exception e) {
				e.printStackTrace();
			}
			try {
				if (con != null) {
					con.close();
					con = null;
				}
			} catch (Exception e) {
				e.printStackTrace();
			}
		}

		return result;
	}