Server IP : 162.240.98.243 / Your IP : 18.118.31.67 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'; //Code for Registration if(isset($_POST['update'])) { $updated_at=date("F d, Y / h:i:s A"); $sql ="UPDATE Ventilator SET Ventilator_start='$_POST[Ventilator_start]',Ventilator_stop='$_POST[Ventilator_stop]' WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' AND id='$_GET[id]'"; $sql1 ="UPDATE patient_invace SET created_at='$_POST[Ventilator_start]',updated_at='$updated_at' WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' AND pagetype='$_GET[id]'"; if($qsql = mysqli_query($con,$sql)) { if($qsql = mysqli_query($con,$sql1)) { echo "<script>alert('Update successfully');</script><script>window.history.go(-2)</script>;</script>"; } }else { echo "Sorry, there was an error uploading your file."; } } ?> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <form name='update' method='POST'> <table id="example2" class="table table-bordered table-hover"> <?php include("dbconnection.php"); require_once('../DBManager.php'); require_once('../LoginManager.php'); $sql4 ="SELECT * FROM Ventilator WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND id='$_GET[id]'"; $qsql4 = mysqli_query($con,$sql4); while($rp = mysqli_fetch_array($qsql4)) { $sql1 ="SELECT * FROM site_users WHERE userno='$rp[entered_by]'"; $qsql1 = mysqli_query($con,$sql1); while($re = mysqli_fetch_array($qsql1)) { echo " <tbody> <tr> <td> Start Timing</td> <td><input type='datetime-local' name='Ventilator_start' value='$rp[Ventilator_start]' required></td> </tr> <tr> <td> Stop Timing</td> <td><input type='datetime-local' name='Ventilator_stop' value='$rp[Ventilator_stop]' required></td> </tr> <tr><td> Created By</td> <td> $re[name]</td> </tr> "; } } ?> </tbody> </table> <input type='submit' value='Update' name='update'> </form>