Re: Not sure how to loop this...(Newbie)

From: Date: Sat, 01 Jun 2002 09:06:39 +0000
Subject: Re: Not sure how to loop this...(Newbie)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-100211@lists.php.net to get a copy of this message
<webmaster@tececo.com> wrote in message news:010001c20934$a71ab550$0200a8c0@JohnH... >I am not sure how to get the newest records to display at the top. Rather than the bottom. >There is no looping yet as I am not sure how to do it. Can I reverse to results array or >something? Every month is in a new set of cells. You should be able to reverse the order the recordsets are returned by adding "DESC" after "ORDER BY id". You say you don't know how to loop it, but you already have a loop ( "for ($i=0; $i < $num_results; $i++)" ) - which part do you feel also needs looping? -- -------------------------------------------- _ _ o o Jason Teagle < jason@teagster.co.uk v --------------------------------------------

« previous php.general (#100211) next »