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. Advertisements

  2. windandwaves

    Daniel Tryba Guest

    That's an RTFM, see http://www.php.net/manual/en/ref.array.php for all
    the array functions.
    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. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.