Page 3 of 3 FirstFirst 123
Results 21 to 22 of 22

Thread: How to use next() and prev() on an array

  1. #21
    Join Date
    Sep 2007
    Location
    Maui
    Posts
    642
    Thanks
    284
    Thanked 15 Times in 15 Posts

    Default

    I don't have any problem confusing the table names with the field names. It would be a huge job renaming everything. It does not interfere with the functioning. Please try to bear with my conventions. I guess I could refer to it your way for the purposes of this thread.

    Are you saying that current($art) is a list of field names? Perhaps I did not make myself clear. The NEXT and PREV buttons go to totally separate pages based on the title_id of the next and prev record in the array of title records from the tblTitle table that results from this command...

    Code:
    sql = "SELECT * FROM tblTitle WHERE artist_id='1' ORDER BY `title` ASC";
    What is a multi-dimensional array?

  2. #22
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    a multi-dimensional array is one with more than one layer. So it's not a list of strings, but a list of lists-- an array of arrays.

    $a['b']['c'] -- two levels, or "two dimensions".
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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