+ 1
How can i display only the last post from database?
6 Respostas
+ 4
If your primary key for the specific entity is increasing, you can safely assume that the most recently added entry (or at least what I understand to be your "last entry") has the maximum key value.
https://stackoverflow.com/questions/12626221/sql-query-to-find-max-primary-key-with-custom-format
+ 1
Thanks! I mean i want to display the last row of my database. i.e I want the last entry of database to echo out in my favourite anytime i make a post.
+ 1
wow! it worked. Thanks my friend, Wendy Seijas. Sololearn is really a solution center. Thanks to all who responded to my question.
0
Yes of course
- 1
hi can you teach me?