Server IP : 162.240.98.243 / Your IP : 18.117.230.81 Web Server : Apache System : Linux server.bti.yaw.mybluehostin.me 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : btiyawmy ( 1003) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/btiyawmy/public_html/login.easenup.in/ |
Upload File : |
<?php session_start(); require_once('../dbconnection.php'); include('header.php'); include("patient_menu.php"); if(isset($_POST['signup'])) { $sql="UPDATE immunization SET Vaccine='$_POST[Vaccine]',DateGiven='$_POST[DateGiven]',duedate='$_POST[duedate]',Note='$_POST[Note]' WHERE Immuni_id='$_GET[Immuni_id]'"; if($qsql = mysqli_query($con,$sql)) { echo "<script>alert('Update successfully');</script><script> window.history.go(-2)</script>"; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <form name="signup" method="post" > <?php $sql ="SELECT * FROM immunization WHERE Immuni_id='$_GET[Immuni_id]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <div class='account-details'> <div><label for='item'>Vaccine</label><input type='text' name='Vaccine' value='$rs[Vaccine]' id='Vaccine'></div> <div><label for='item'>Date Given</label><input type='date' name='DateGiven' value='$rs[DateGiven]' id='DateGiven'></div><div><label for='item'>Due Date </label><input type='date' value='$rs[duedate]' name='duedate' id='duedate'></div><div><label for='item'>Note</label><textarea name='Note' rows='2' cols='50' id='Note'>$rs[Note]</textarea></div> </div> "; } ?> <input type="submit" value='Update' name="signup"> </div></div> </form>