How do i retrieve items from a database ?
How do i retrieve messages that are stored in the database by clicking a button.
e.g. 
i have 15 messages in the database.
if i click it 3 times , it'll take the 3rd last message and display it.

its stored in an array.
How do i retrieve items from a database ?
===

How do i retrieve messages that are stored in the database by clicking a button.
e.g. 
i have 15 messages in the database.
if i click it 3 times , it'll take the 3rd last message and display it.

its stored in an array.