Server IP : 50.63.8.133 / Your IP : 18.216.207.192 Web Server : Microsoft-IIS/10.0 System : Windows NT P3NWVPWEB032 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : IWPD_10999(xformtec) ( 0) PHP Version : 5.4.45 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : G:/PleskVhosts/xform.in/madhurivivah.com/admin/ |
Upload File : |
Current File : G:/PleskVhosts/xform.in/madhurivivah.com/admin/edit-profile.php |
<?php
include('include/config.php');
session_start();
?>
<?php
if (isset($_GET['editid'])) {
$editid = $_GET['editid'];
$sql1 = "SELECT * FROM member_profile WHERE id LIKE '%$editid%'";
$res1 = mysqli_query($con, $sql1);
$row1 = mysqli_fetch_array($res1);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Twitter -->
<meta name="twitter:site" content="">
<meta name="twitter:creator" content="">
<meta name="twitter:card" content="s">
<meta name="twitter:title" content="">
<meta name="twitter:description" content="">
<meta name="twitter:image" content="">
<!-- Facebook -->
<meta property="og:url" content="">
<meta property="og:title" content="Bracket">
<meta property="og:description" content="">
<meta property="og:image" content="">
<meta property="og:image:secure_url" content="">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="600">
<!-- Meta -->
<meta name="description" content="">
<meta name="author" content="">
<title>madhuri vivah | View profile</title>
<!-- vendor css -->
<link href="lib/font-awesome/css/font-awesome.css" rel="stylesheet">
<link href="lib/Ionicons/css/ionicons.css" rel="stylesheet">
<link href="lib/perfect-scrollbar/css/perfect-scrollbar.css" rel="stylesheet">
<link href="lib/jquery-switchbutton/jquery.switchButton.css" rel="stylesheet">
<!-- Bracket CSS -->
<link rel="stylesheet" href="css/bracket.css">
</head>
<body>
<!-- ########## START: LEFT PANEL ########## -->
<?php include_once('sidebar.php'); ?>
<!-- br-sideleft -->
<!-- ########## END: LEFT PANEL ########## -->
<!-- ########## START: HEAD PANEL ########## -->
<?php //include_once('include/header1.php');
?>
<!-- br-header -->
<!-- ########## END: HEAD PANEL ########## -->
<!-- ########## START: RIGHT PANEL ########## -->
<?php include_once('right-pannel-sidebar.php'); ?>
<!-- br-sideright -->
<!-- ########## END: RIGHT PANEL ########## --->
<!-- ########## START: MAIN PANEL ########## -->
<div class="br-mainpanel br-profile-page" id="toprint">
<div class="card shadow-base bd-0 rounded-0 widget-4">
<div class="card-header ht-75">
<div class="hidden-xs-down">
</div>
<div class="tx-24 hidden-xs-down">
<a href="" class="mg-r-10"><i class="icon ion-ios-email-outline"></i></a>
<a href=""><i class="icon ion-more"></i></a>
</div>
</div><!-- card-header -->
<div class="card-body">
<p> <?php echo htmlentities($ermsg1); ?></p>
<div class="img">
<?php
if (isset($_POST['update6'])) {
$imgfile = $_FILES["profile_photo"]["name"];
$extension = substr($imgfile, strlen($imgfile) - 4, strlen($imgfile));
// allowed extensions
$allowed_extensions = array(".jpg", "jpeg", ".png", ".gif");
// Validation for allowed extensions .in_array() function searches an array for a specific value.
if (!in_array($extension, $allowed_extensions)) {
echo "<script>alert('Invalid format. Only jpg / jpeg/ png /gif format allowed');</script>";
} else {
//rename the image file
$imgnewfile = md5($imgfile) . $extension;
move_uploaded_file($_FILES["profile_photo"]["tmp_name"], "img/profile-photos/" . $imgfile);
$id = intval($_GET['editid']);
//$sql1 = "UPDATE member_profile SET profile_photo='$imgfile' WHERE id='$id'";
$sql2 = mysqli_query($con, "Update member_profile set profile_photo='$imgfile' where id='$id'");
if ($sql2) {
//echo "Records inserted successfully.";
{
echo "<script>
alert('Profile Updated Successfully..!!!');
</script>";
}
} else {
$ermsg1 = "Please Try Agin";
}
//if ($query) {
//$msg = " Your Personal Information updated ";
// } else {
//$error = "Something went wrong . Please try again.";
// }
}
}
?>
<?php
if ($row1['profile_photo']) {
?>
<img src="img/profile-photos/<?php echo htmlentities($row1['profile_photo']); ?>" alt="" style="height: 300px ; width:250px;">
<?php
} else {
?>
<img src="img/image-not-available.png" alt="" style="height: 300px ; width:250px;">
<?php
}
?>
</div>
<form name="update_profile_picture" action="" method="post" enctype='multipart/form-data'>
<input type="file" name="profile_photo" placeholder="Update Your Profile Picture">
<button class="btn btn-success" name="update6" type="submit"><b>Update Profile Picture</b></button>
</form>
<!-- card-profile-img --><br>
<h4 class="tx-normal tx-roboto tx-white"><?php echo htmlentities($row1['member_profile_id']); ?></h4>
<a href="all-profile.php"> <button class="btn btn-warning pd-x-30 pd-y-15 tx-uppercase tx-bold tx-spacing-6 tx-12">back</button></a>
</div><!-- card-body -->
</div><!-- card -->
<div class="ht-70 bg-gray-100 pd-x-20 d-flex align-items-center justify-content-center shadow-base">
<ul class="nav nav-outline active-info align-items-center flex-row" role="tablist">
<li class="nav-item"><a class="nav-link active" data-toggle="tab" href="#posts" role="tab">Posts</a></li>
</ul>
</div>
<div class="tab-content br-profile-body">
<div class="tab-pane fade active show" id="posts">
<div class="row">
<div class="col-lg-12">
<p> <?php echo htmlentities($ermsg1); ?></p>
<?php
if (isset($_POST['update'])) {
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$date_of_birth = $_POST['date_of_birth'];
$age = $_POST['age'];
$gender = $_POST['gender'];
$hieght = $_POST['hieght'];
$blood_group = $_POST['blood_group'];
$skin_type = $_POST['skin_type'];
$weight = $_POST['weight'];
$body_look = $_POST['body_look'];
$lence = $_POST['lence'];
$cast = $_POST['cast'];
$sub_cast = $_POST['sub_cast'];
$religion = $_POST['religion'];
$married_status = $_POST['married_status'];
$mobile_number = $_POST['mobile_number'];
$id = intval($_GET['editid']);
//$sql1 = "UPDATE member_profile SET profile_photo='$imgfile' WHERE id='$id'";
$sql3 = mysqli_query($con, "Update member_profile set first_name='$first_name',gender='$gender',cast='$cast',sub_cast='$sub_cast',religion='$religion',married_status='$married_status',mobile_number='$mobile_number',last_name='$last_name',date_of_birth='$date_of_birth',age='$age',hieght='$hieght',blood_group='$blood_group',skin_type='$skin_type',weight='$weight',body_look='$body_look',lence='$lence' where id='$id'");
//$sql1 = "UPDATE member_profile SET first_name='$first_name',middle_name='$middle_name',cast='$cast',religion='$religion',married_status='$married_status',mobile_number='$mobile_number',last_name='$last_name',date_of_birth='$date_of_birth',age='$age',hieght='$hieght',blood_group='$blood_group',skin_type='$skin_type',weight='$weight',body_look='$body_look',lence='$lence' WHERE member_profile_id='" . $_SESSION['member_profile_id'] . "'";
if ($sql3) {
//echo "Records inserted successfully.";
{
echo "<script>
alert('Profile Updated Successfully..!!!');
</script>";
}
} else {
$ermsg2 = "Either Email ID or Password is Incorrect..!";
}
//if ($query) {
//$msg = " Your Personal Information updated ";
// } else {
//$error = "Something went wrong . Please try again.";
// }
}
?>
<form name="update_prsonal_information" action="" method="post" enctype='multipart/form-data'>
<div class="media-list bg-white rounded shadow-base">
<h3 class="btn btn-oblong btn-primary ">Personial Information</h3>
<div class="media pd-20 pd-xs-30" style=" border: 2px solid #1c87c9;">
<div class="media-body mg-l-20">
<div class="d-flex justify-content-between mg-b-10">
<table class="table table-bordered">
<tbody>
<tr>
<td>GROOM / BRIDE FULL NAME :-
</td>
<td>
<input class="form-control" type="text" name="first_name" Value="<?php echo htmlentities($row1['first_name']); ?>" title="Enter First Name">
<input class="form-control" type="text" name="last_name" Value="<?php echo htmlentities($row1['last_name']); ?>">
</td>
</tr>
<tr>
<td>GENDER :-
</td>
<td><?php echo htmlentities($row1['gender']); ?>
<select name="gender" class="form-control" >
<option value="">SELECT</option>
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</td>
</tr>
<tr>
<td>MARRITAL STATUS :-
</td>
<td><?php echo htmlentities($row1['married_status']); ?>
<select name="married_status" class="btn btn-warning form-control" value="<?php echo htmlentities($row['married_status']); ?>">
<option value="">SELECT Marital Status</option>
<?php
// Feching active categories
$ret = mysqli_query($con, "select id,marrital_status_name from marrital_status where status=1");
while ($result = mysqli_fetch_array($ret)) {
?>
<option value="<?php echo htmlentities($result['marrital_status_name']); ?>"><?php echo htmlentities($result['marrital_status_name']); ?></option>
<?php } ?>
</select>
</td>
</tr>
<tr>
<td>MOBILE NUMBER :-
</td>
<td>
<input class="form-control" type="text" name="mobile_number" Value="<?php echo htmlentities($row1['mobile_number']); ?>">
</td>
</tr>
<tr>
<td>EMAIL ID :-
</td>
<td>
<input class="form-control" type="text" name="email" Value="<?php echo htmlentities($row1['email']); ?>">
</td>
</tr>
<tr>
<td>DATE OF BIRTH :-
</td>
<td>
<input class="form-control" type="text" name="date_of_birth" Value="<?php echo htmlentities($row1['date_of_birth']); ?>">
</td>
</tr>
<tr>
<td>RELIGION :-
</td>
<td><?php echo htmlentities($row1['religion']); ?>
<select class="btn btn-warning form-control" name="religion" value="<?php echo htmlentities($row['religion']); ?>">
<option value="">--Please choose an Your Religion--</option>
<option value="Hindu" name="">Hindu</option>
<option value="Bauddha" name="">Bauddha</option>
</select>
</td>
</tr>
<tr>
<td>CAST :-
</td>
<td><?php echo htmlentities($row1['cast']); ?>
<select class="btn btn-warning form-control" name="cast" value="<?php if (isset($row)) {
echo $row['cast'];
} ?>">
<option value="">--Please choose an Your Cast--</option>
<?php
// Feching active categories
$ret = mysqli_query($con, "select id,name_cast from all_cast where status=1");
while ($result = mysqli_fetch_array($ret)) {
?>
<option value="<?php echo htmlentities($result['name_cast']); ?>"><?php echo htmlentities($result['name_cast']); ?></option>
<?php } ?>
</select>
</td>
</tr>
<tr>
<td>SUB CAST :-
</td>
<td>
<input class="form-control" type="text" name="sub_cast" Value="<?php echo htmlentities($row1['sub_cast']); ?>">
</td>
</tr>
<tr>
<td>AGE :-
</td>
<td>
<input class="form-control" type="text" name="age" Value="<?php echo htmlentities($row1['age']); ?>">
</td>
</tr>
<tr>
<td>HIGHT :-
</td>
<td>
<input class="form-control" type="text" name="hieght" Value="<?php echo htmlentities($row1['hieght']); ?>">
</td>
</tr>
<tr>
<td>BLOOD GROUP :-
</td>
<td><?php echo htmlentities($row1['blood_group']); ?>
<select class="btn btn-warning form-control" name="blood_group" value="<?php if (isset($row)) {
echo $row['blood_group'];
} ?>">
<option value="">--Please choose an Your Blood Group--</option>
<option value="A+" name="">A Positive</option>
<option value="A-" name="">A Negative</option>
<option value="A?" name="">A Unknown</option>
<option value="B+" name="">B Positive</option>
<option value="B-" name="">B Negative</option>
<option value="B?" name="">B Unknown</option>
<option value="AB+" name="">AB Positive</option>
<option value="AB-" name="">AB Negative</option>
<option value="AB?" name="">AB Unknown</option>
<option value="O+" name="">O Positive</option>
<option value="O-" name="">O Negative</option>
<option value="O?" name="">O Unknown</option>
<option value="?" name="">Unknown</option>
</select>
</td>
</tr>
<tr>
<td>COMPLEXION :-
</td>
<td><?php echo htmlentities($row1['skin_type']); ?>
<select class="btn btn-warning form-control" name="skin_type" value="<?php if (isset($row)) {
echo $row['skin_type'];
} ?>">
<option value="">--Please choose an option--</option>
<option value="wheatish" name="">Wheatish(गहूवर्ण)</option>
<option value="Fair" name="">Fair(गोरा)</option>
<option value="Dark" name="">Dark(काळा/सावळा)</option>
</select>
</td>
</tr>
<tr>
<td>WEIGHT :-
</td>
<td>
<input class="form-control" type="text" name="weight" Value="<?php echo htmlentities($row1['weight']); ?>">
</td>
</tr>
<tr>
<td>BUILT :-
</td>
<td><?php echo htmlentities($row1['body_look']); ?>
<select id="p-select" class="btn btn-warning form-control" name="body_look" value="<?php if (isset($row)) {
echo $row['body_look'];
} ?>">
<option value="">--Please choose an option--</option>
<option value="Stout">Stout</option>
<option value="Medium">Medium</option>
<option value="Slim">Slim</option>
</select>
</td>
</tr>
<tr>
<td>LENSES/SPECTS :-
</td>
<td><?php echo htmlentities($row1['lence']); ?>
<select id="p-select" class="btn btn-warning form-control" name="lence" value="<?php if (isset($row)) {
echo $row['lence'];
} ?>">
<option value="">Select Lenses</option>
<option value="yes">yes</option>
<option value="No">no</option>
</select>
</td>
</tr>
</tbody>
</table>
</div><!-- d-flex -->
<button class="btn btn-success" name="update" type="submit"><b>Update Personal Information</b></button>
</div><!-- media-body -->
</div><!-- media -->
</div><!-- card -->
</form>
<?php
if (isset($_POST['update1'])) {
$education = $_POST['education'];
$hobbies = $_POST['hobbies'];
$income = $_POST['income'];
$job_work = $_POST['job_work'];
$id = intval($_GET['editid']);
$sql4 = mysqli_query($con, "Update member_profile set education='$education',hobbies='$hobbies',income='$income',job_work='$job_work' where id='$id'");
if ($sql4) {
//echo "Records inserted successfully.";
{
echo "<script>
alert('Profile Updated Successfully..!!!');
</script>";
}
} else {
$ermsg = "Either Email ID or Password is Incorrect..!";
}
}
?>
<form name="update_prsonal_information" action="" method="post" enctype='multipart/form-data'>
<div class="media-list bg-white rounded shadow-base">
<h3 class="btn btn-oblong btn-primary ">Education Information</h3>
<div class="media pd-20 pd-xs-30" style=" border: 2px solid #1c87c9;">
<div class="media-body mg-l-20">
<div class="d-flex justify-content-between mg-b-10">
<table class="table table-bordered">
<tbody>
<tr>
<td>EDUCATION :-</td>
<td>
<input class="form-control" name="education" type="text" value="<?php echo htmlentities($row1['education']); ?>"></input>
</td>
</tr>
<tr>
<td>JOB/BUSINESS :-</td>
<td>
<input class="form-control" name="job_work" type="text" value="<?php echo htmlentities($row1['job_work']); ?>"></input>
</td>
</tr>
<tr>
<td>ANNUALY ENCOME :-</td>
<td>
<input class="form-control" name="income" type="text" value="<?php echo htmlentities($row1['income']); ?>"></input>
</td>
</tr>
<tr>
<td>HOBBIES :-</td>
<td>
<input class="form-control" name="hobbies" type="text" value="<?php echo htmlentities($row1['hobbies']); ?>"></input>
</td>
</tr>
</tbody>
</table>
</div><!-- d-flex -->
<button class="btn btn-success" name="update1" type="submit"><b>Update Education Information</b></button>
</div><!-- media-body -->
</div><!-- media -->
</div><!-- card -->
</form>
<?php
if (isset($_POST['update2'])) {
$father_name = $_POST['father_name'];
$mother_name = $_POST['mother_name'];
$all_brothers = $_POST['all_brothers'];
$all_sisters = $_POST['all_sisters'];
$family_work = $_POST['family_work'];
$diet = $_POST['diet'];
$id = intval($_GET['editid']);
$sql5 = mysqli_query($con, "Update member_profile set father_name='$father_name',mother_name='$mother_name',all_brothers='$all_brothers',all_sisters='$all_sisters',family_work='$family_work',diet='$diet' where id='$id'");
//$sql1 = "UPDATE member_profile SET father_name='$father_name',mother_name='$mother_name',all_brothers='$all_brothers',all_sisters='$all_sisters',family_work='$family_work',diet='$diet'WHERE member_profile_id='" . $_SESSION['member_profile_id'] . "'";
if ($sql5) {
//echo "Records inserted successfully.";
{
echo "<script>
alert('Profile Updated Successfully..!!!');
</script>";
}
} else {
$ermsg = "Either Email ID or Password is Incorrect..!";
}
}
?>
<form name="update_prsonal_information" action="" method="post" enctype='multipart/form-data'>
<div class="media-list bg-white rounded shadow-base">
<h3 class="btn btn-oblong btn-primary ">Fammily Information</h3>
<div class="media pd-20 pd-xs-30" style=" border: 2px solid #1c87c9;">
<div class="media-body mg-l-20">
<div class="d-flex justify-content-between mg-b-10">
<table class="table table-bordered">
<tbody>
<tr>
<td>FATHER NAME :-</td>
<td>
<input class="form-control" name="father_name" type="text" value="<?php echo htmlentities($row1['father_name']); ?>"></input>
</td>
</tr>
<tr>
<td>MOTHER NAME :-</td>
<td>
<input class="form-control" name="mother_name" type="text" value="<?php echo htmlentities($row1['mother_name']); ?>"></input>
</td>
</tr>
<tr>
<td>MHOW MANY BROTHERS :-</td>
<td>
<input class="form-control" name="all_brothers" type="text" value="<?php echo htmlentities($row1['all_brothers']); ?>"></input>
</td>
</tr>
<tr>
<td>MHOW MANY SISTERS :-</td>
<td>
<input class="form-control" name="all_sisters" type="text" value="<?php echo htmlentities($row1['all_sisters']); ?>"></input>
</td>
</tr>
<tr>
<td>FAMMILY WORK :-</td>
<td>
<input class="form-control" name="family_work" type="text" value="<?php echo htmlentities($row1['family_work']); ?>"></input>
</td>
</tr>
<tr>
<td>DIET :-</td>
<td>
<input class="form-control" name="diet" type="text" value="<?php echo htmlentities($row1['diet']); ?>"></input>
</td>
</tr>
</tbody>
</table>
</div><!-- d-flex -->
<button class="btn btn-success" name="update2" type="submit"><b>Update Family Information</b></button>
</div><!-- media-body -->
</div><!-- media -->
</div><!-- card -->
</form>
<?php
if (isset($_POST['update3'])) {
$gotra = $_POST['gotra'];
$devak = $_POST['devak'];
$gan = $_POST['gan'];
$naadi = $_POST['naadi'];
$nakashtra = $_POST['nakashtra'];
$charan = $_POST['charan'];
$raas = $_POST['raas'];
$birth_place = $_POST['birth_place'];
$birth_time = $_POST['birth_time'];
$id = intval($_GET['editid']);
$sql5 = mysqli_query($con, "Update member_profile set gotra='$gotra',devak='$devak',gan='$gan',naadi='$naadi',nakashtra='$nakashtra',charan='$charan',raas='$raas',birth_place='$birth_place',birth_time='$birth_time' where id='$id'");
if (mysqli_query($con, $sql1)) {
//echo "Records inserted successfully.";
{
echo "<script>
alert('Profile Updated Successfully..!!!');
</script>";
}
} else {
$ermsg = "Either Email ID or Password is Incorrect..!";
}
}
?>
<form name="update_prsonal_information" action="" method="post" enctype='multipart/form-data'>
<div class="media-list bg-white rounded shadow-base">
<h3 class="btn btn-oblong btn-primary ">Horoscope Information</h3>
<div class="media pd-20 pd-xs-30" style=" border: 2px solid #1c87c9;">
<div class="media-body mg-l-20">
<div class="d-flex justify-content-between mg-b-10">
<table class="table table-bordered">
<tbody>
<tr>
<td>GOTRA(गोत्र ) :-</td>
<td>
<input class="form-control" name="gotra" type="text" value="<?php echo htmlentities($row1['gotra']); ?>"></input>
</td>
</tr>
<tr>
<td>GAN (गण) :-</td>
<td>
<input class="form-control" name="gan" type="text" value="<?php echo htmlentities($row1['gan']); ?>"></input>
</td>
</tr>
<tr>
<td>NAKSHATRA(नक्षत्र ) :-</td>
<td>
<input class="form-control" name="nakashtra" type="text" value="<?php echo htmlentities($row1['nakashtra']); ?>"></input>
</td>
</tr>
<tr>
<td>NAADI (नाडी) :--</td>
<td>
<input class="form-control" name="naadi" type="text" value="<?php echo htmlentities($row1['naadi']); ?>"></input>
</td>
</tr>
<tr>
<td>RASHI(रास ):-</td>
<td>
<input class="form-control" name="raas" type="text" value="<?php echo htmlentities($row1['raas']); ?>"></input>
</td>
</tr>
<tr>
<td> DEVAK (देवक):-
</td>
<td><input class="form-control" name="devak" type="text" value="<?php echo htmlentities($row1['devak']); ?>"></input></td>
</tr>
<tr>
<td>CHARAN (चरण) :-</td>
<td>
<input class="form-control" name="charan" type="text" value="<?php echo htmlentities($row1['charan']); ?>"></input>
</td>
</tr>
<tr>
<td>BIRTH PLACE:-</td>
<td>
<input class="form-control" name="birth_place" type="text" value="<?php echo htmlentities($row1['birth_place']); ?>"></input>
</td>
</tr>
<tr>
<td>BIRTH TIME:-</td>
<td><?php echo htmlentities($row1['birth_time']); ?>
<input class="form-control" name="birth_time" type="text" value="<?php echo htmlentities($row1['birth_time']); ?>"></input>
</td>
</tr>
</tbody>
</table>
</div><!-- d-flex -->
<button class="btn btn-success" name="update3" type="submit"><b>Update HOROSCOPE Information</b></button>
</div><!-- media-body -->
</div><!-- media -->
</div><!-- card -->
</form>
<?php
if (isset($_POST['update4'])) {
$currant_address = $_POST['currant_address'];
$permanant_address = $_POST['permanant_address'];
$state = $_POST['state'];
$district = $_POST['district'];
$id = intval($_GET['editid']);
$sql5 = mysqli_query($con, "Update member_profile set currant_address='$currant_address',permanant_address='$permanant_address',state='$state',district='$district' where id='$id'");
// $sql1 = "UPDATE member_profile SET currant_address='$currant_address',permanant_address='$permanant_address',state='$state',district='$district'WHERE member_profile_id='" . $_SESSION['member_profile_id'] . "'";
if ($sql1) {
//echo "Records inserted successfully.";
{
echo "<script>
alert('Profile Updated Successfully..!!!');
</script>";
}
} else {
$ermsg = "Either Email ID or Password is Incorrect..!";
}
}
?>
<form name="update_prsonal_information" action="" method="post" enctype='multipart/form-data'>
<div class="media-list bg-white rounded shadow-base">
<h3 class="btn btn-oblong btn-primary ">Address Information</h3>
<div class="media pd-20 pd-xs-30" style=" border: 2px solid #1c87c9;">
<div class="media-body mg-l-20">
<div class="d-flex justify-content-between mg-b-10">
<table class="table table-bordered">
<tbody>
<tr>
<td>CURRENT ADDRESS :-</td>
<td>
<textarea class="form-control" rows="5" cols="50" name="currant_address">
<?php echo htmlentities($row1['currant_address']); ?>
</textarea>
</td>
</tr>
<tr>
<td>PARMANENT ADDRESS :-</td>
<td>
<textarea class="form-control" rows="5" cols="50" name="permanant_address">
<?php echo htmlentities($row1['permanant_address']); ?>
</textarea>
</td>
</tr>
<tr>
<td>STATE :-</td>
<td><?php echo htmlentities($row1['state']); ?>
<select class="btn btn-warning form-control" name="state" id="state" class="form-control">
<option value="">--Select Your State--</option>
<?php
// Feching active categories
$ret = mysqli_query($con, "select id,state_name from state where status=1");
while ($result = mysqli_fetch_array($ret)) {
?>
<option value="<?php echo htmlentities($result['state_name']); ?>"><?php echo htmlentities($result['state_name']); ?></option>
<?php } ?>
</select>
</td>
</tr>
<tr>
<td>DISTRICT :-</td>
<td>
<input class="form-control" name="district" type="text" value="<?php echo htmlentities($row1['district']); ?>">
</td>
</tr>
</tbody>
</table>
</div><!-- d-flex -->
<button class="btn btn-success" name="update4" type="submit"><b>Update Address Information</b></button>
</div><!-- media-body -->
</div><!-- media -->
</div><!-- card -->
</form>
<?php
if (isset($_POST['update5'])) {
$expectation = $_POST['expectation'];
$ads_info = $_POST['ads_info'];
$id = intval($_GET['editid']);
$sql5 = mysqli_query($con, "Update member_profile set expectation='$expectation',ads_info='$ads_info' where id='$id'");
if ( $sql5) {
//echo "Records inserted successfully.";
{
echo "<script>
alert('Profile Updated Successfully..!!!');
</script>";
}
} else {
$ermsg = "Either Email ID or Password is Incorrect..!";
}
}
?>
<form name="update_prsonal_information" action="" method="post" enctype='multipart/form-data'>
<div class="media-list bg-white rounded shadow-base">
<h3 class="btn btn-oblong btn-primary">expectation</h3>
<div class="media pd-20 pd-xs-30" style=" border: 2px solid #1c87c9;">
<div class="media-body mg-l-20">
<div class="d-flex justify-content-between mg-b-10">
<p class="form-control">
<textarea id="w3review" class="form-control" name="expectation" rows="4" cols="50" value=" <?php echo htmlentities($row1['expectation']); ?>"><?php echo htmlentities($row1['expectation']); ?></textarea></td>
</p>
</div><!-- d-flex -->
<div class="media-list bg-white rounded shadow-base">
<h3 class="btn btn-oblong btn-primary">Additional Information</h3>
<div class="media pd-20 pd-xs-30" style=" border: 2px solid #1c87c9;">
<div class="media-body mg-l-20">
<div class="d-flex justify-content-between mg-b-10">
<p class="form-control">
<textarea id="w3review" class="form-control" name="ads_info" rows="4" cols="50" value=" <?php echo htmlentities($row1['ads_info']); ?>"><?php echo htmlentities($row1['ads_info']); ?></textarea>
</p>
</div><!-- d-flex -->
</div><!-- media-body -->
</div><!-- media -->
</div><!-- card -->
<p>मी संस्थेचे माहितीपत्रक वाचले असून त्यातील सूचना व नियम मला मान्य आहेत वरील भरलेली संपूर्ण माहिती खरी असून त्यास मी संपूर्ण जबाबदार आहे</p>
<button class="btn btn-success" name="update5" type="submit"><b>Update Personal Information</b></button>
</div><!-- media-body -->
</div><!-- media -->
</div><!-- card -->
</form>
</div><!-- col-lg-8 -->
</div><!-- row -->
</div><!-- tab-pane -->
</div><!-- tab-pane -->
</div><!-- br-pagebody -->
<!-- ########## END: MAIN PANEL ########## -->
<script src="lib/jquery/jquery.js"></script>
<script src="lib/popper.js/popper.js"></script>
<script src="lib/bootstrap/bootstrap.js"></script>
<script src="lib/perfect-scrollbar/js/perfect-scrollbar.jquery.js"></script>
<script src="lib/moment/moment.js"></script>
<script src="lib/jquery-ui/jquery-ui.js"></script>
<script src="lib/jquery-switchbutton/jquery.switchButton.js"></script>
<script src="lib/peity/jquery.peity.js"></script>
<script src="js/bracket.js"></script>
<script>
function printpart() {
var printwin = window.open("");
printwin.document.write(document.getElementById("toprint").innerHTML);
printwin.stop();
printwin.print();
printwin.close();
}
</script>
</body>
</html>