0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.142.36.215


Current Path : /var/www/misc/public_html/oums_old/phpscript/
Upload File :
Current File : /var/www/misc/public_html/oums_old/phpscript/get_master_info.php

<?php
	function get_dept_name($dept_code)
	{
		$dept_name="";
		include("sys_connect.php");
		$mysql="select * from masdept where fdeptcode='$dept_code'";
		$myres=mysqli_query($mycon,$mysql);
		while($row = mysqli_fetch_assoc($myres))
		{
			$dept_name=$row['fdeptname'];
		}
		if($dept_code=='%')
		{
			$dept_name="ALL";		
		}
		return $dept_name;
	}

	function get_empl_name($empl_code)
	{
		$empl_name="";
		include("sys_connect.php");
		$mysql="select * from masempl where femplcode='$empl_code'";
		$myres=mysqli_query($mycon,$mysql);
		while($row = mysqli_fetch_assoc($myres))
		{
			$empl_name=$row['femplname'];
		}
		if($empl_code=='%')
		{
			$empl_name="ALL";		
		}
		return $empl_name;
	}
?>