CasperSecurity

Current Path : /var/www/mvc360.ucnms.co.in/purchase_order/
Upload File :
Current File : /var/www/mvc360.ucnms.co.in/purchase_order/supplier_dropdown_api.php

          <?php
session_start();


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

$db_handle = new DBController();
 $selectnum=$db_handle-> numRows("SELECT * FROM supplier");
$last_row = $selectnum - 1;

if($selectnum >= 1){

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