Received: from smtp012.mail.yahoo.com (smtp012.mail.yahoo.com [216.136.173.32]) by postgresql.org (8.11.3/8.11.1) with SMTP id f4ODHfA36825 for ; Thu, 24 May 2001 09:17:41 -0400 (EDT) (envelope-from chrup999@yahoo.com) Received: from proxy.compucom.com (HELO Z161842) (204.214.145.2) by smtp.mail.vip.sc5.yahoo.com with SMTP; 24 May 2001 13:17:37 -0000 X-Apparently-From: Message-ID: <002b01c0e453$db292860$5dd26383@corp.compucom.com> From: "Chris Ruprecht" To: "p-php" Subject: Control Breaks Date: Thu, 24 May 2001 08:17:17 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200105/79 X-Sequence-Number: 388 Is there an easier way of doing a control break than: for ( ... read all my records ...) { if this-value != last-value then ... . . . last-value = this-value } Also, any recommendations towards reading material? Best regards, Chris _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com