Re: Selct & show certain num records ?

From: Date: Wed, 30 Jan 2002 08:13:11 +0000
Subject: Re: Selct & show certain num records ?
Groups: php.db 
Request: Send a blank email to php-db+get-16342@lists.php.net to get a copy of this message
$order="time desc"; $sql="SELECT * from $table ORDER BY $order LIMIT 0,5" or die ("Cant do sql $sql");; that would get the latest news sorted on the time. Neil ----- Original Message ----- From: Dave Carrera <dave@davecarrera.com> To: <php-db@lists.php.net> Sent: Thursday, January 31, 2002 5:54 PM Subject: [PHP-DB] Selct & show certain num records ? > Hi All > > I know this has been covered here before but can someone please remind > me how to selct just the 5 latest records in my db and show them in list > form. > > Just like phpbuilder.com dose > > I thank you in advance for repeating this information. > > Dave C :-) > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#16342) next »