Navigater

Hi admin. I have four buttons (first, next , previous and last) i want code to move my record in sql database. But i don't now how to code. Please help me! Thank!