checkAdmin("index.php"); $m_uid = trim($_POST["muid"]); //echo "[$m_uid]";exit; if ($m_uid == "") $mode = "create"; else $mode = "update"; if ($mode == "") $mode = "update"; if ($mode == "create") { $btnName = "CREATE"; } else if ($mode == "update") { $btnName = "UPDATE"; $admTag = "DISABLED"; } if ($m_uid != "") { // Get Information $query = "SELECT * FROM tbl_member WHERE m_uid = '".$m_uid."' "; $result=$jdb->fQuery($query, "fetch query error"); // echo"$query"; for($i=0; $i $value ) $$key = $value; } $m_firstnameSTR = str_replace("\\", "", $m_firstname); $m_lastnameSTR = str_replace("\\", "", $m_lastname); $m_initialSTR = str_replace("\\", "", $m_initial); $m_cellSTR = preg_replace('/[^A-Za-z0-9\-]/', '', $m_cell); $m_cellSTR = str_replace("\\", "", $m_cellSTR); $m_cellSTR = str_replace("-", "", $m_cellSTR); $m_cellSTR = substr ($m_cellSTR, 0, 3)."-".substr ($m_cellSTR, 3, 3)."-".substr ($m_cellSTR, 6, 4); $m_commentSTR = str_replace("\\", "", $m_comment); $m_signupdateSTR = $func -> convertFormat ($m_signupdate, 1); $m_logindateSTR = $func -> convertFormat ($m_logindate, 1); } // Get Status Info foreach ($arrStatus AS $key=>$value) { //echo "[$key][$value]"; => [0][Waiting][1][Confirmed][E][Declined]... if ($key == $m_status) $selectStr = "selected"; else $selectStr = ""; if ($key != 'F') { $m_statusSTR .= " "; } } // Get Member Level foreach ($arrMemberLevel AS $key=>$value) { //echo "[$key][$value]"; => [0][Waiting][1][Confirmed][E][Declined]... if ($key == $m_level) $selectStr = "selected"; else $selectStr = ""; $m_levelSTR .= " "; } ?>