$smname = $emailArr[$i]['vFirstName'] . ' ' . $emailArr[$i]['vLastName']; $email = $emailArr[$i]['vEmail']; //set the values of the body of email format $body_arr = array("#NAME#", "#REC#", "#EMAIL#", "#LINK#", "#MAIL_FOOTER#", "#SITE_URL#"); $post_arr = array($smname, 'Admin', $eml, $link, $MAIL_FOOTER, SITE_URL_DUM); //send mail to the Admin $sendMail->Send("Email Duplication", "Member", $email, $body_arr, $post_arr); } } // dpr email for duplication of email in rec } else { $var_msg = "Eror-in Add."; } } else { if ($view == "edit") { $arr = $adminUserObj->select($iAdminId); $adminUserObj->setAllVar($arr); $Data = array_merge($Data, array("dLastAccess" => $curr_date)); //prints($Data);exit; $adminUserObj->setAllVar($Data); $where = " iAdminId = '" . $iAdminId . "'"; $res = $adminUserObj->update($where); if ($res) { $var_msg = "Record Updated Successfully."; } else { $var_msg = "Eror-in Update."; } } } header("Location:index.php?file=ge-admin&view=index&AX=Yes&var_msg={$var_msg}"); exit;