0) for($i=0; $i0 and RHD_DATE>='".$wellArray[$i]['CNT_AUDIT_DATE']."' and RHD_DRS_ID=".$wellArray[$i]['CNT_DRS_ID']); for($w=0; $w