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_location_api.php

<?php
   
session_start();


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




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

$db_handle = new DBController();

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

	

	
	
	if($selecthnum >= 1){

		
		
		echo '{"status": "1",
		
	
		"data":[';
	 $i =1;
		
         foreach($select as $resulth){
			
	$a1 = $resulth['location_id'];
	
	$a3 = $resulth['room_no'].'-'.$resulth['location_name'].'-'.$resulth['floor'].'-'.$resulth['building'];		 
	
		echo'
		{
			
			"location_id":"'.$a1.'",
			"location_name":"'.$a3.'"
			
			
		}';
			
		 
			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