CasperSecurity

Current Path : /var/www/atraket.uiet.co.in/v1.0/api/request/asset_transfered/
Upload File :
Current File : /var/www/atraket.uiet.co.in/v1.0/api/request/asset_transfered/asset_transfered_employee_api.php

<?php
   
session_start();


include '../../connection/connection.php';




$db_handle= new DBController();
$select=$db_handle->runQuery("SELECT * FROM employee ");

$db_handle = new DBController();

$selecthnum=$db_handle-> numRows("SELECT * FROM employee ");
 $last_row = $selecthnum - 1;

	

	
	
	if($selecthnum >= 1){

		
		
		echo '{"status": "1",
		
	
		"data":[';
	 $i =1;
		
         foreach($select as $resulth){
			
	$a1 = $resulth['employee_id'];
	$a2 = $resulth['first_name'].' '.$resulth['last_name'];
	
		echo'
		{
			"employee_id":"'.$a1.'",
			"employee_name":"'.$a2.'"
			
			
		}';
			
		 
			if($i <= $last_row){
						echo ',';
					}
			 $i++;
		
		 }
		echo'
			]}';
		
	}else{
		
		echo '{"status": "0",
			"message":"Page Not found"
			}';
	
}





?>
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY