Server IP : 162.240.98.243 / Your IP : 3.144.93.86 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 $flag_status =0; include("dbconnection.php"); require_once('../DBManager.php'); require_once('../LoginManager.php'); $narayan=LoginManager::currentUser(); $usertype=LoginManager::getUserTypeByuname("$narayan"); $today = date("F d, Y / h:i:s A"); $sql1 ="SELECT * FROM site_users WHERE userno='$usertype'"; $qsql1 = mysqli_query($con,$sql1); if($re = mysqli_fetch_array($qsql1)) { $sqlpatient = "SELECT * FROM code_blue WHERE adminid='$re[entered_by]' AND status='start'"; $qsqlpatient = mysqli_query($con,$sqlpatient); if($rsp = mysqli_fetch_array($qsqlpatient)) { $sqlpatient2 = "SELECT * FROM patient WHERE patientid='$rsp[patientid]'"; $qsqlpatient2 = mysqli_query($con,$sqlpatient2); if($rsp2 = mysqli_fetch_array($qsqlpatient2)) { $flag_status =1; } } } $flag_status =1; if($_POST['change'] == 'test'){ if($flag_status == 1){ echo 'sucess'; }else{ echo 'fail'; } } ?>