Comparing two arrays?
Posted by: Rick.Haden (---.popl.cable.ntl.com)
Date: March 07, 2009 03:22PM

I hope someone out there can help in this.

To set the scene...I have a table of payments made with a year in which they were made. I need to search to find out how many people paid in one year but not in another. I have done a search with the first date and a search with the second to produce two arrays consisting of around 16 columns each. I have tried using array_diff in php to show the differences, but get gobbledgook returned. This is mainly due to the fact that I don't seem to be able to loop through the third array containing the differences...I am obviously doing something very wrong...any ideas?

Rick

Options: ReplyQuote
Re: Comparing two arrays?
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: March 07, 2009 03:55PM

rick can u email the code to my gmail email below,,,

and if possible a snapshot of the headerrow in each table from phpmyadmin

thanks

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Comparing two arrays?
Posted by: Rick.Haden (---.popl.cable.ntl.com)
Date: March 07, 2009 06:06PM

Have done so...thanks for having a look...

I have made a join between the two tables, just to add to the complexity...the linking field is CardNumber.

Have I got the join around the right way? would that have an affect? Babbling now, sorry..

Rick

Options: ReplyQuote


Sorry, only registered users may post in this forum.