function check_app_exists($uniq_name, $bdd)
{
	$sql = "select count(*) from bp where name = '" . $uniq_name . "';";
	$req = $bdd->query($sql);
	$bp_exist = $req->fetch(PDO::FETCH_NUM);
	
	if($bp_exist[0] == 1){
		echo "true";
	} else {
		echo "false";
	}
}
The software constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.