Results 1 to 26 of 26

Thread: How do you get the last record in a set of query results?[Resolved]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    How do you get the last record in a set of query results?[Resolved]

    PHP Code:
    $query "SELECT ID FROM Tablexyz WHERE condition = x
    $result = mssql_query($query);
    // ---- get value in last element of the array --- // 
    Ideas? I'm trying to get the last record returned from a query.
    Last edited by ober0330; Mar 3rd, 2004 at 09:41 AM.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width