I want to fetch last 5 records which is entered by the user. How can i fetch last 5 entered records using php? Please help
What format are the records? If its an array you can use something like: $data = array_slice($data, count($data) - 5); Code (markup):