e

mail@pastecode.io avatar
unknown
php
2 years ago
834 B
2
Indexable
Never
<input type="text" id="testo" name="testo" > <!--casella input dove deve essere stampato nome[1] -->

    <script>
      
    </script>


    <form name="form" id="form">
NOME : <select  id="selectOpt" onchange="onchange()">;
    </form>
    
<?php
$serverName = "SRV-AHR\SQLEXPRESS"; //serverName\instanceName
$connectionInfo = array( "Database"=>"CalendarioMacchine", "UID"=>"ahr", "PWD"=>"atk","TrustServerCertificate"=>1);
$conn = sqlsrv_connect( $serverName, $connectionInfo);
$query="select id,operatori from operatori where op_reparto='mont'";
$results2=sqlsrv_query($conn,$query);
while($nome=sqlsrv_fetch_array($results2,SQLSRV_FETCH_NUMERIC)){
    
 
    echo "<option value='".$nome[0]."'>".$nome[1]."</option>";
}
?>
</select>




<!--$nome = sqlsrv_fetch_array($results2);
//echo $nome[1]