Aggiunta associazione

This commit is contained in:
2019-04-29 16:51:42 +02:00
parent 391a850339
commit 6d18fd19ae
33 changed files with 2987 additions and 1 deletions

21
associazione/cercaart.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
include_once ("../core/config.php");
include_once ("funzioni.php");
$produttore = $_GET['produttore'];
$categoria = $_GET['categoria'];
$query = "SELECT id, nome FROM wf_materiale WHERE categoria = '$categoria' AND produttore = '$produttore' AND attivo = 1 ORDER BY nome";
$res = mysql_query( $query, $DB_ID );
$mat='<option>SELEZIONARE</option>';
while ($dato = mysql_fetch_array ( $res )) {
$mat.='<option value="'.$dato['id'].'">'.$dato['nome'].'</option>';
}
$v_result = array('status'=>'OK', 'mat'=>$mat);
$json = json_encode($v_result);
echo $json;
?>