CasperSecurity

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

          <?php
session_start();


include '../../../web/connection/connectionv2.php';	
	
$db_handle = new DBController();
$select=$db_handle-> runQuery("SELECT * FROM canteen_brand");

$db_handle = new DBController();

$selectnum=$db_handle-> numRows("SELECT * FROM canteen_brand");
 $last_row = $selectnum - 1;
if($selectnum >= 1){

		
		
		echo '{"status": "1",
		
	
		"data":[';
	
		$i =1;
         foreach($select as $result){
			 
			 
	$brand_name = $result['brand_name'];
	
	
			 echo'
			 {
			 
			"brand name":"'.$brand_name.'"
			
			}';
			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