CasperSecurity

Current Path : /var/www/acasv2.uiet.co.in/v.2.0/api/request/item/
Upload File :
Current File : /var/www/acasv2.uiet.co.in/v.2.0/api/request/item/item_grid_view_api.php

<?php
session_start();


include '../../../web/connection/connectionv2.php';	
	
$db_handle = new DBController();
$select=$db_handle-> runQuery("SELECT * FROM (item
   INNER JOIN item_group ON item.item_group_id = item_group.item_group_id)
   

  ");

$db_handle = new DBController();

$selectnum=$db_handle-> numRows("SELECT * FROM (item
   INNER JOIN item_group ON item.item_group_id = item_group.item_group_id)
  

  ");

 $last_row = $selectnum - 1;
if($selectnum >= 1){

		
		
	echo '{"status": "1",
		
	
		"data":[';
	
		$i =1;
         foreach($select as $resulth){
			 
		$item_id = $resulth['item_id'];	 
		$item_group_name = $resulth['item_group_name'];	 
		$item_name = $resulth['item_name'];	 
		//$brand_name = $resulth['brand_name'];	 
	    
	    $hsn_code= $resulth['hsn_code'];
		
	
	
			 echo'
			 {
			 
			"item_id":"'.$item_id.'",
			"item_group_name":"'.$item_group_name.'",
			"item_name":"'.$item_name.'",
			
			"hsn_code":"'.$hsn_code.'"
			
			
			
			}';
			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