[PHP] compare values in 2 array

2006-07-28 Thread weetat
Hi all , I am using PHP 4.3.2 and MYSQL DB. I need to compare values in array which populated by database , below is the code : $temp_tbl = array(); while ($row = $temptbl_result-fetchRow(DB_FETCHMODE_ASSOC)){ $rs_chasis_serialno = $row['serial_no']; $rs_card_serial_no =

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

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