Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: PHP questions

  1. #11
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Freeman View Post
    So if this is comparing two things then it is searching for something in a set of predefined guidelines with the appropriate variables. Is it searching or comparing or both?
    I don't think I can really explain more without just giving you the answer, though the name of the variable I mentioned explicitly in my previous post should surely give you a big clue.
    Mike

  2. #12
    Join Date
    Aug 2005
    Posts
    200
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This is used when a search is being performed. It has a defined thing that it is looking for and looks at one line of database code at a time. When it is done looking in that line it adds one to the location of where it should be searching so that it moves to the next line. Is that it? I think it is.
    -JF

  3. #13
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Freeman View Post
    This is used when a search is being performed.
    It should be fairly clear what that search is, though, and probably what your potential employers want to know.

    It has a defined thing that it is looking for and looks at one line of database code at a time.
    From only the code posted, there's no definite sign of database involvement: the row from the function, getrow, could be from some other source.

    When it is done looking in that line it adds one to the location of where it should be searching so that it moves to the next line.
    That's the basis of iteration - moving from one position to the next - but there's more obvious things in the code: the comparison, subsequent assignment, and what that implies for the value of a particular variable are significant.
    Mike

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
  •