public boolean updateAdmin(Admin admin) {
		Connection conn = ConnectionFactory.getConnection();
		PreparedStatement pstmt=null;
		String sql = "UPDATE admins set a_user=?,a_pass=? ,a_email=?,a_phone=? where a_id=?";
		try {
			 pstmt = conn.prepareStatement(sql);
			 pstmt.setString(1, admin.getA_user());
			 pstmt.setString(2, admin.getA_pass());
			 pstmt.setString(3, admin.getA_email());
			 pstmt.setString(4, admin.getA_phone());
			 pstmt.setLong(5, admin.getA_id());

			return pstmt.executeUpdate()==1?true:false;

		} catch (SQLException e) {

			e.printStackTrace();
			return false;
		}finally{
			SQLCommand.close(pstmt);
			SQLCommand.close(conn);
		}
	}