Server IP : 162.240.98.243 / Your IP : 3.149.249.252 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/www/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 allergy SET Allergen='$_POST[Allergen]',Category='$_POST[Category]',Severity='$_POST[Severity]',Reaction='$_POST[Reaction]',Reactiontype='$_POST[Reactiontype]',Reactionstdate='$_POST[Reactionstdate]' WHERE allergy_id='$_GET[allergy_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 allergy WHERE allergy_id='$_GET[allergy_id]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <div class='account-details'> <div><label for='item'>Allergen<span></span></label><input type='text' value='$rs[Allergen]' name='Allergen'> </div> <div><label for='item'>Category<span></span></label> <td><select name='Category' id='Category'> <option value='$rs[Category]'>$rs[Category] </option> <option value='Drug'> Drug</option> <option value='Food'>Food</option> <option value='Investigation'> Investigation</option> <option value='Other'> Other</option> </select> </div> <div><label for='item'>Severity<span></span></label><select name='Severity' id='Severity'> <option value='$rs[Severity]'>$rs[Severity] </option> <option value='Mild'> Mild</option> <option value='Moderate'>Moderate</option> <option value='Severe'> Severe</option> </select> </div> <div><label for='item'>Reaction<span></span></label><select name='Reactiontype' id='Reactiontype'> <option value='$rs[Reactiontype]'>$rs[Reactiontype] </option> <option value='Allergy'> Allergy</option> <option value='Advance Effect'>Advance Effect</option> <option value='Unknown'> Unknown</option> </select> </div> <div><label for='item'>Reaction start date<span></span></label><input type='date' value='$rs[Reactionstdate]' name='Reactionstdate'> </div> </div> "; } ?> <input type="submit" name="signup"> </div></div> </form>