CasperSecurity

Current Path : /var/www/mvc360.ucnms.co.in/v.2.0/api/request/purchasewithoutgstapi/
Upload File :
Current File : /var/www/mvc360.ucnms.co.in/v.2.0/api/request/purchasewithoutgstapi/brand_dropdown_api.php

          <?php
session_start();


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

$db_handle = new DBController();

$selectnum=$db_handle-> numRows("SELECT * FROM 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