Server IP : 103.6.199.200 / Your IP : 18.222.20.3 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/kunci.feenix.my/wwwroot/ |
Upload File : |
<?php session_start();include"conn.php";ob_start(); //deleting nms if (@$_GET['dlnms']!=NULL){$_SESSION['Del']=@$_GET['dlnms'];header("Location:psr.php");} //borrow if(isset($_POST['fpinj'])){ $fpinj=mysqli_query($paut,"INSERT INTO pnj (idbil,ids,Stat,d,m,y,t,ts) VALUES ('".@$_POST['bil']."','".@$_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='".@$_POST['bil']."'"); $r=mysqli_query($paut,"SELECT * FROM bil, nms WHERE bil.idbil=".$_POST['bil']." 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:Rak.php");ob_end_clean(); } } ?>