Re: [PHP] compare values in 2 array

2006-07-28 Thread weetat
Hi John & all, Thanks for your info. I have 2 array which populated from MYSQL as shown below : My program will update status in the temporary table according to compare of 2 arrays, for example from 2 array below: in $temptablearr = there 3 elements in $currenttablearr = there 2

Re: [PHP] compare values in 2 array

2006-07-28 Thread John Wells
On 7/28/06, weetat <[EMAIL PROTECTED]> wrote: I need to compare values in array which populated by database , below is the code : Without mentioning how your code performs some unnecessary actions, and is also full of errors, here's the idea of what you want (untested): [code] // assume at fir