View Single Post

Old 19-04-2007, 16:57   #1 (permalink)
ShaunBurden
Newbie
 
Join Date: Mar 2007
Posts: 12
iTrader: 0 / 0%
ShaunBurden is an unknown quantity at this point
Default Am I able to select the last item in my database?

What I need to know is am I able to ask my query to select always the last item in my database, so that my php will display what is in the last one.

Also, I would like to know if I could query the database to select the second last, the thrid last and the fourth last item in my database, so that I can write my php code to select what ever has been queried.

I have four tables, and in each table is a piece of code that connects to the database and brings in what is queried, so thats why I would like to know if this is possible and what the SQL & PHP would be.

Thanks!
ShaunBurden is offline   Reply With Quote