Server IP : 103.6.199.200 / Your IP : 3.144.86.38 Web Server : Microsoft-IIS/10.0 System : Windows NT EMPUSA 10.0 build 20348 (Windows Server 2016) i586 User : EMPUSA$ ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Domains/feenixmy/qrkunci.feenix.my/wwwroot/ |
Upload File : |
<?php session_start();ob_start();include "conn.php"; //borrow $fpinj=mysqli_query($paut,"INSERT INTO pnj (idbil,ids,Stat,d,m,y,t,ts) VALUES ('".$_SESSION['QRIDKUNCI']."','".$_SESSION['UserID']."','1','".date("d")."','".date("M")."','".date("Y")."','".date("h:i A")."','".date("d M Y h:i A")."')"); $kpinj=mysqli_query($paut,"UPDATE bil SET Stat='1' WHERE idbil='".$_SESSION['QRIDKUNCI']."'"); $r=mysqli_query($paut,"SELECT * FROM bil, nms WHERE bil.idbil=".$_SESSION['QRIDKUNCI']." AND nms.ids=".$_SESSION['UserID']."")or die("FAILED!!!");while($r1=mysqli_fetch_array($r)){ $_SESSION['STAF'] = $r1['Nms']; //Nama Staf $_SESSION['BILIK'] = $r1['Nm']; //Nama Bilik $_SESSION['KBILIK'] = $r1['Kod']; //Kod Bilik $_SESSION['nopinPINJAM'] = $r1['Kod']; header("Location:qrpinjam.php");ob_end_clean(); } ?>