Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
17 righe
578 B
17 righe
578 B
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
if (isset($_GET["query"]) && !empty($_GET["ente"])) { |
|
$text = $_GET["query"]; |
|
$bind = [":ente"=>$_GET["ente"]]; |
|
$bind[":area"] = "%".$_GET["query"]."%"; |
|
$sql = "SELECT area FROM b_progetti WHERE codice_ente = :ente AND area LIKE :area GROUP BY area"; |
|
$ris = $pdo->go($sql,$bind); |
|
if(!empty($ris->rowCount())) { |
|
while($area = $ris->fetch(PDO::FETCH_COLUMN)) { |
|
$rec[] = array("value"=>$area,"label"=>$area); |
|
} |
|
} |
|
echo json_encode($rec); |
|
} |
|
?>
|
|
|