X7ROOT File Manager
Current Path:
/home/remnbtxp/public_html/members/ajax
home
/
remnbtxp
/
public_html
/
members
/
ajax
/
📁
..
📄
add_donations.php
(1.29 KB)
📄
add_expenses.php
(1.13 KB)
📄
add_invoice.php
(1.18 KB)
📄
add_member.php
(3.38 KB)
📄
add_notes.php
(538 B)
📄
add_task.php
(1.22 KB)
📄
delete_donations.php
(673 B)
📄
delete_expenses.php
(664 B)
📄
delete_invoice.php
(664 B)
📄
delete_member.php
(1.09 KB)
📄
delete_notes.php
(0 B)
📄
delete_task.php
(645 B)
📄
edit_donations.php
(1.47 KB)
📄
edit_expenses.php
(2.71 KB)
📄
edit_invoice.php
(1.35 KB)
📄
edit_member.php
(3.84 KB)
📄
edit_notes.php
(0 B)
📄
edit_task.php
(1.12 KB)
📄
error_log
(5.43 KB)
📄
fetch_members.php
(932 B)
📄
get_expense_details.php
(826 B)
📄
get_member.php
(809 B)
📄
get_member_details.php
(312 B)
📄
get_notes.php
(468 B)
📁
qw
📄
submit_member.php
(3.46 KB)
Editing: edit_member.php
<?php require_once('../config.php'); if ($_SERVER['REQUEST_METHOD'] === 'POST') { $memberId = $_POST['selectMember']; $memberName = $_POST['memberName']; $memberOtherNames = $_POST['memberOtherNames']; $memberMobile = $_POST['memberMobile']; $memberTelephone = $_POST['memberTelephone']; $memberEmail = $_POST['memberEmail']; $memberDOB = $_POST['memberDOB']; $memberOccupation = $_POST['memberOccupation']; $memberAddress1 = $_POST['memberAddress1']; $memberAddress2 = $_POST['memberAddress2']; $memberCityCounty = $_POST['memberCityCounty']; $memberCountry = $_POST['memberCountry']; $memberNextOfKin = $_POST['memberNextOfKin']; $memberNextOfKinMobile = $_POST['memberNextOfKinMobile']; $NOKAddress1 = $_POST['NOKAddress1']; $NOKAddress2 = $_POST['NOKAddress2']; $NOKCityCounty = $_POST['NOKCityCounty']; $NOKCountry = $_POST['NOKCountry']; $socialMedia = $_POST['socialMedia']; $weekdayCallTime = $_POST['weekdayCallTime']; $weekEndCallTime = $_POST['weekEndCallTime']; $contactChoice = $_POST['contactChoice']; $connectAsFamily = $_POST['connectAsFamily']; $partnerType = $_POST['partnerType']; $volunteerPartnership = $_POST['volunteerPartnership']; $donationOption = $_POST['donationOption']; $ministryOption = $_POST['ministryOption']; $otherMinistryDonation = $_POST['otherMinistryDonation']; $query = "UPDATE members SET member_name = ?, member_other_names = ?, member_mobile = ?, member_telephone = ?, member_email = ?, member_dob = ?, member_occupation = ?, member_address1 = ?, member_address2 = ?, member_city_county = ?, member_country = ?, member_next_of_kin = ?, member_next_of_kin_mobile = ?, nok_address1 = ?, nok_address2 = ?, nok_city_county = ?, nok_country = ?, social_media = ?, weekday_call_time = ?, weekend_call_time = ?, contact_choice = ?, connect_as_family = ?, partner_type = ?, volunteer_partnership = ?, donation_option = ?, ministry_option = ?, other_ministry_donation = ? WHERE member_id = ?"; $stmt = $conn->prepare($query); $stmt->bind_param('sssssssssssssssssssssssssssi', $memberName, $memberOtherNames, $memberMobile, $memberTelephone, $memberEmail, $memberDOB, $memberOccupation, $memberAddress1, $memberAddress2, $memberCityCounty, $memberCountry, $memberNextOfKin, $memberNextOfKinMobile, $NOKAddress1, $NOKAddress2, $NOKCityCounty, $NOKCountry, $socialMedia, $weekdayCallTime, $weekEndCallTime, $contactChoice, $connectAsFamily, $partnerType, $volunteerPartnership, $donationOption, $ministryOption, $otherMinistryDonation, $memberId); if ($stmt->execute()===TRUE) { header('Location: /members/manage_members.php'); exit; } else { echo 'error'; } } ?>
Upload File
Create Folder