You are here: Re: PHP and MySQL « HTML « IT news, forums, messages
Re: PHP and MySQL

Posted by JDS on 10/31/05 17:36

On Sun, 30 Oct 2005 18:49:28 +0100, Colin Roosendaal wrote:

> I'm looking for the PHP/MySQL query to get the last 5 added records from
> my database/table.

It depends on how "last five records" is defined.

Is there a date field in the database?
Is there a numeric, auto-incremented ID field?

In other words, is there any field which can be used to track what field
was most recently added?

Is "most recently added" the ones you want? Or do you just want the bottom
five rows after a particular ORDER BY clause has been applied?

Also, this is *really* not an HTML question. Try alt.php or alt.php.sql
or comp.lang.php or other closer-to-on-topic group for more help.

--
JDS | jeffrey@example.invalid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация