PHP record fetching help needed

Discussion in 'PHP' started by SmartWEBmaster, Jun 30, 2010.

  1. #1
    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
     
    SmartWEBmaster, Jun 30, 2010 IP
  2. imperialDirectory

    imperialDirectory Peon

    Messages:
    395
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What format are the records? If its an array you can use something like:

    
    $data = array_slice($data, count($data) - 5);
    
    Code (markup):
     
    imperialDirectory, Jun 30, 2010 IP