Re: Breaking apart by group?

From: Date: Thu, 11 Oct 2001 18:38:36 +0000
Subject: Re: Breaking apart by group?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70841@lists.php.net to get a copy of this message
Yep I have ORDER BY publishday which works fine but am having trouble with the logic to get the tables to print correctly. So far they are printing off one day :) So Wednesdays events are showing under Thursday :) Jeff ----- Original Message ----- From: "Alfredeen, Johan" <johanalfredeen@vp.net> To: "'Jeff Lewis'" <jeff@hyrum.net>; <php-general@lists.php.net> Sent: Thursday, October 11, 2001 2:41 PM Subject: RE: [PHP] Breaking apart by group? > Sounds like you need to SORT on publishday, then compare the current value > to the previous one you have stored in a variable $prev_publishday. > > Johan > which world? www.pongworld.com > > > -----Original Message----- > From: Jeff Lewis [mailto:jeff@hyrum.net] > Sent: Thursday, October 11, 2001 12:19 PM > To: php-general@lists.php.net > Subject: [PHP] Breaking apart by group? > > > I am looping through a set of data retrieved through my database and I want > to break it apart based on the variable called publishday. So the first > time around a new table will need to be started but for each time around I > need to check if a new publishday is encountered. If so, close the previous > table and start a new one. > > If anyone understands and can help out, I'd be very appreciative :) > > Jeff > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.general (#70841) next »