
<?php 

    require_once("connection.php");
    $UserID = $_GET['GetID'];
    $query = " select * from sun2 where User_ID='".$UserID."'";
    $result = mysqli_query($con,$query);

    while($row=mysqli_fetch_assoc($result))
    {
        $UserID = $row['User_ID'];
		$UserTransaction = $row['User_Transaction'];
        $UserRefrence = $row['User_Refrence'];
        $UserDescription = $row['User_Description'];
        $UserDebit = $row['User_Debit'];
		$UserCredit = $row['User_Credit'];
    }

?>

<!DOCTYPE html>
<html lang="en">
  <head>
  
  <link rel="newrtcut icon" href="images/favicon.ico" >
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:200,300,400,700,900|Roboto+Mono:300,400,500"> 
    <link rel="stylesheet" href="fonts/icomoon/style.css">

    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/magnific-popup.css">
    <link rel="stylesheet" href="css/jquery-ui.css">
    <link rel="stylesheet" href="css/owl.carousel.min.css">
    <link rel="stylesheet" href="css/owl.theme.default.min.css">
    <link rel="stylesheet" href="css/bootstrap-datepicker.css">
    
    
    <link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">
  
    <link rel="stylesheet" href="css/aos.css">

    <link rel="stylesheet" href="css/style.css">
    <style type="text/css">
    .aab {
	font-size: 36px;
	color: #FF0000;
}
.inside {
	height: auto;
	width: 1170px;
	float: left;
}
.inside1 {
	height: auto;
	width: 1170px;
	float: left;
}
    .for1 {
	width: 270px;
	float: left;
	text-align: center;
	margin-right: 22px;
}
    .sweet {
	width: 80px;
	float: left;
	text-align: center;
}
.soso {
	width: 555px;
	float: left;
	margin-right: 30px;
	font-family: Roboto, Arial, serif;
}
    .aas {
	color: #FA7E0A;
	font-size: 24px;
	font-family: "Roboto Slab", Arial, sans-serif;
}
.statements1 {
	float: right;
	height: auto;
	width: 1170px;
	color: #FA7E0A;
	font-size: 20px;
	font-family: "Roboto Slab", Arial, sans-serif;
	text-align: left;
}
.statements2 {
	float: right;
	height: 70px;
	width: 1020px;
	text-align: center;
	padding-left: 150px;
}
.statements3 {
	float: right;
	height: 70px;
	width: 1170px;
}
.statements4 {
	float: right;
	height: 70px;
	width: 1170px;
}
.statements5 {
	float: right;
	height: 70px;
	width: 1170px;
}
.statements6 {
	float: right;
	height: 70px;
	width: 1170px;
}
.statements7 {
	float: right;
	height: 70px;
	width: 1170px;
}
.statements8 {
	float: right;
	height: 70px;
	width: 1170px;
}
.statements9 {
	float: right;
	height: 70px;
	width: 1170px;
}
.stat1 {
	float: right;
	height: 65px;
	width: 240px;
	text-align: center;
	padding-top: 5px;
	font-size: 20px;
}
.stat2 {
	float: right;
	height: 65px;
	width: 240px;
	text-align: center;
	padding-top: 5px;
	font-size: 20px;
}
.stat3 {
	float: right;
	height: 65px;
	width: 340px;
	text-align: center;
	padding-top: 5px;
	font-size: 20px;
}
.stat4 {
	float: right;
	height: 65px;
	width: 140px;
	text-align: center;
	padding-top: 5px;
	font-size: 20px;
}
.stat5 {
	float: right;
	height: 65px;
	width: 200px;
	text-align: center;
	padding-top: 5px;
	font-size: 20px;
}
.st1 {

	float: right;
	height: 70px;
	width: 240px;
	text-align: center;
	font-size: 20px;
}

.st11 {
	float: right;
	height: 70px;
	width: 590px;
	font-size: 16px;
	text-align: center;
	font-size: 20px;
}
.st2 {
	float: right;
	height: 70px;
	width: 240px;
	text-align: center;
	font-size: 20px;
}
.st22 {
	float: right;
	height: 70px;
	width: 580px;
	font-size: 16px;
	text-align: center;
	font-size: 20px;
}
.st3 {
	float: right;
	height: 70px;
	width: 340px;
	text-align: center;
	font-size: 20px;
}
.st4 {
	float: right;
	height: 70px;
	width: 140px;
	text-align: center;
	font-size: 20px;


}
.st5 {
	float: right;
	height: 70px;
	width: 200px;
	text-align: center;
}
.goboy {
	float: left;
	height: auto;
	width: 200px;
}
    .new {
	height: auto;
	width: 1170px;
}
    </style>
  </head>
  <body>
  
  <div class="site-wrap">

    <div class="site-mobile-menu">
      <div class="site-mobile-menu-header">
        <div class="site-mobile-menu-close mt-3">
          <span class="icon-close2 js-menu-toggle"></span>
        </div>
      </div>
      <div class="site-mobile-menu-body"></div>
    </div> <!-- .site-mobile-menu -->
    
    
    <div class="site-navbar-wrap bg-white">
      <div class="site-navbar-top">
        <div class="container py-2">
          <div class="row align-items-center">
            <div class="col-6">
              <div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
            </div>
            <div class="col-6">
              <div class="d-flex ml-auto">
                <a href="#" class="d-flex align-items-center ml-auto mr-4">
                  <span class="icon-phone mr-2"></span>
                  <span class="d-none d-md-inline-block"></span>
                </a>
                <a href="#" class="d-flex align-items-center">
                  <span class="icon-envelope mr-2"></span>
                  <span class="d-none d-md-inline-block"></span>&nbsp;&nbsp;
                </a>
                <a href="#" class="d-flex align-items-center">
                  
                  <span class="d-none d-md-inline-block">Mon-Fri : 8:00am - 5:00pm - Sat: 8:30am - 3:30pm</span>
                </a>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="site-navbar bg-light">
        <div class="container py-1">
          <div class="row align-items-center">
            <div class="col-2">
              
            </div>
            <div class="col-10">
              <nav class="site-navigation text-right" role="navigation">
                <div class="container">
                  <div class="d-inline-block d-lg-none ml-md-0 mr-auto py-3"><a href="#" class="site-menu-toggle js-menu-toggle text-black"><span class="icon-menu h3"></span></a></div>

                  <ul class="site-menu js-clone-nav d-none d-lg-block">
                    <li class="active">
                      <a href="acc1.php">ACC1</a>
                      
                    </li>
                    
                    <li><a href="acc2.php">ACC2</a></li>
                    <li><a href="acc3.php">ACC3</a></li>
                    <li><a href="acc4.php">ACC4</a></li>
                    <li><a href="acc5.php">ACC5</a></li>
                    <li><a href="acc6.php">ACC6</a></li>
                    <li><a href="acc7.php">ACC7</a></li>
                    <li><a href="acc8.php">ACC8</a></li>
                    <li><a href="acc9.php">ACC9</a></li>
                    <li><a href="acc10.php">ACC10</a></li>
                    <li><a href="acc11.php">ACC11</a></li>
                    <li><a href="acc12.php">ACC12</a></li>
                    <li><a href="acc13.php">ACC13</a></li>
                    <li><a href="acc14.php">ACC14</a></li>
                    <li><a href="acc15.php">ACC15</a></li>
                    <li><a href="acc16.php">ACC16</a></li>
                    <li><a href="acc17.php">ACC17</a></li>
                    <li><a href="acc18.php">ACC18</a></li>
                    <li><a href="payment.php">Payment</a></li>
                    <li><a href="change.php">Change Account Number and Password</a></li>
                    <li><a href="accountinfo.php">Opening Account Info</a></li>
                    <li><a href="photo.php">Opening Account photo</a></li>
                    
                  </ul>
                </div>
              </nav>
            </div>
          </div>
        </div>
      </div>
    </div>

      

    <div class="site-section bg-light">
      <div class="container">
        <div class="row">
          <div class="p-4 mb-3 bg-white">
           








              <div class="inside1">
              
              
              
              
              
              
              
              
              
              
              
                <div class="new">
					
					
                
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" a href="CSS/bootstrap.css"/>
    <title>Document</title>
</head>
<body class="bg-dark">

        <div class="container">
            <div class="row">
                <div class="col-lg-6 m-auto">
                    <div class="card mt-5">
                        <div class="card-title">
                            <h3 class="bg-success text-white text-center py-3"> Update Form in PHP</h3>
                        </div>
                        <div class="card-body">

                            <form action="update_sun2.php?ID=<?php echo $UserID ?>" method="post">
								<input type="text" class="form-control mb-2" placeholder=" Transaction Date " name="transaction" value="<?php echo $UserTransaction ?>">
                                <input type="text" class="form-control mb-2" placeholder=" Refrence No # " name="refrence" value="<?php echo $UserRefrence ?>">
                                <input type="text" class="form-control mb-2" placeholder=" Description " name="description" value="<?php echo $UserDescription ?>">
                                <input type="text" class="form-control mb-2" placeholder=" Debit  " name="debit" value="<?php echo $UserDebit ?>">
								<input type="text" class="form-control mb-2" placeholder=" Credit   " name="credit" value="<?php echo $UserCredit ?>">
								
                                <button class="btn btn-primary" name="update">Update</button>
                            </form>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    
</body>
</html>


				  
				  
				  
				  </div>
                
                
                
                
                
                
                
                
                
                
                
                
                
			    
              
              <div class="statements2">
              
                
                
              </div>
              
            
            </div>
            
          </div>
          
          
      </div>
      </div>
    </div>

    
    <div class="promo py-5 bg-primary" data-aos="fade">
      <div class="container text-center">
        <h2 class="d-block mb-0 font-weight-light text-white"><a href="#" class="text-white d-block"></a></h2>
      </div>
    </div>
    
    <footer class="site-footer">
      <div class="container">
        

        <div class="row"></div>
        <div class="row pt-5 mt-5 text-center">
          <div class="col-md-12">
            <p>
            <!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
            Copyright &copy;  All Rights Reserved | 
            <!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
            </p>
          </div>
          
        </div>
      </div>
    </footer>
  </div>

  <script src="js/jquery-3.3.1.min.js"></script>
  <script src="js/jquery-migrate-3.0.1.min.js"></script>
  <script src="js/jquery-ui.js"></script>
  <script src="js/popper.min.js"></script>
  <script src="js/bootstrap.min.js"></script>
  <script src="js/owl.carousel.min.js"></script>
  <script src="js/jquery.stellar.min.js"></script>
  <script src="js/jquery.countdown.min.js"></script>
  <script src="js/jquery.magnific-popup.min.js"></script>
  <script src="js/bootstrap-datepicker.min.js"></script>
  <script src="js/aos.js"></script>

  <script src="js/main.js"></script>
    
  </body>
</html>