Server IP : 162.240.98.243 / Your IP : 3.129.45.71 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('../DBManager.php'); require_once('../LoginManager.php'); include("header.php"); include 'dashboarddocument.php'; if(isset($_POST['signup'])) { $sql ="UPDATE opdslip SET Admission_diagnosis='$_POST[Admission_diagnosis]' WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; if($qsql = mysqli_query($con,$sql)) { echo "<script>alert('Update successfully');</script>"; } else { echo "Sorry, there was an error uploading your file."; } } ?> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h2 align="center">Diagnosis</h2> <form name="signup" enctype="multipart/form-data" method="post" > <?php $sql ="SELECT * FROM opdslip WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo" <table id='example2' class='table table-bordered table-hover'> <tr><td>Admission diagnosis</td><td><input type='text' value='$rs[Admission_diagnosis]' name='Admission_diagnosis'></td></tr> "; } ?> </table> <button type="submit" name="signup">Update</button> </form>