Viewing file: accountupdate.php (1.22 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $con=mysqli_connect("localhost","aadhar_user","aadhar_pass","aadhar_baserain_db838"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); }
$ser=$_POST[account];
$sql = "UPDATE new_acc SET cname='$_POST[cname]', fname='$_POST[fname]', jdate='$_POST[jdate]', jmonth='$_POST[jmonth]', jyear='$_POST[jyear]', applicationno='$_POST[applicationno1]', village='$_POST[village]', post='$_POST[post]', distt='$_POST[distt]', state='$_POST[state]', pin='$_POST[pin]', ecode='$_POST[empcode]', pan_no='$_POST[panno]', phone='$_POST[phone]', depositby='$_POST[depositby]', email='$_POST[email]', dateofbirth='$_POST[dob]', occupation='$_POST[occupation]', qualification='$_POST[qualification]', passbookno='$_POST[passbookno]', nominee_name='$_POST[nominee_name]', nomineeage='$_POST[nominee_age]', nomineeralation='$_POST[nomineerelation]', plan_name='$_POST[select]', plan_time='$_POST[plantime]' WHERE acc_no='$ser'";
if (!mysqli_query($con,$sql)) { die('Error: ' . mysqli_error($con)); }
mysqli_close($con); die ("<script>location = 'accountupdation.php'</script>");
?>
|