is there a quick way to compare the results from two arrays and note the diffences?

Discussion in 'HTML' started by windandwaves, Mar 23, 2005.

  1. windandwaves

    windandwaves Guest

    is there a quick way to compare the results from two arrays and note the differences?

    I have two identical tables in MySql (backup and current table) and I want to work out the differences between them (i.e. what
    fields are different). I could construct some long function, but I was wondering if anyone had a quick method (I am just learning
    PHP).

    Thank you


    - Nicolaas
    windandwaves, Mar 23, 2005
    #1
    1. Advertising

  2. windandwaves

    Daniel Tryba Guest

    In comp.lang.php windandwaves <> wrote:
    > is there a quick way to compare the results from two arrays and note the differences?


    That's an RTFM, see http://www.php.net/manual/en/ref.array.php for all
    the array functions.

    > I have two identical tables in MySql (backup and current table) and I want to work out the differences between them (i.e. what
    > fields are different). I could construct some long function, but I was wondering if anyone had a quick method (I am just learning
    > PHP).


    Differences in database tables should be computed by the database
    itself if possible.

    BTW set your width to something beneath 80 to keep you articles
    readable.
    Daniel Tryba, Mar 24, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Harald Kirsch
    Replies:
    4
    Views:
    17,503
    Dale King
    Apr 15, 2006
  2. vaggelis
    Replies:
    0
    Views:
    3,498
    vaggelis
    Jul 13, 2003
  3. GenxLogic
    Replies:
    3
    Views:
    1,266
    andrewmcdonagh
    Dec 6, 2006
  4. Victor Reyes
    Replies:
    3
    Views:
    127
    David Vallner
    Jan 11, 2006
  5. Kev Jackson
    Replies:
    2
    Views:
    110
Loading...

Share This Page