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! |