Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > is there a quick way to compare the results from two arrays and note the diffences?

Reply
Thread Tools

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

 
 
windandwaves
Guest
Posts: n/a
 
      03-23-2005
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



 
Reply With Quote
 
 
 
 
Daniel Tryba
Guest
Posts: n/a
 
      03-24-2005
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 4.43 How do I compute the difference of two arrays? How do I compute the intersection of two arrays? PerlFAQ Server Perl Misc 0 02-02-2011 05:00 AM
How to compare two SOAP Envelope or two Document or two XML files GenxLogic Java 3 12-06-2006 08:41 PM
two arrays problem (although different from the other two arrays) Kev Jackson Ruby 2 03-29-2006 03:58 PM
Is there a quick way to compare two arrays and .... Victor Reyes Ruby 3 01-11-2006 05:46 AM
Compare two XML files using Mercury's Quick Test Professional vaggelis XML 0 07-13-2003 12:11 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57