Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $consultaCliente="SELECT idCliente from clientes order by idcliente asc";
- $resulta2 = $conexion->query($consultaCliente);
- if ($resulta2->num_rows > 0)
- { $combobit2="";
- while ($fila = $resulta2->fetch_array(MYSQLI_ASSOC))
- { $combobit2 .=" <option value=".$fila['idCliente']." >
- ".$fila['idCliente']; //concatenamos los options para luego ser insertado en
- el HTML
- }
- }
- else { echo "No hubo resultados"; }
- <form action="facturilla.php" method="POST">
- <td>No. Folio</td>
- <select name="folio">
- <?php echo $combobit1; ?>
- </select>
- <p />
- <td>Fecha</td>
- <input type="date" name="fecha">
- <td>Idcliente</td>
- <select name="idcliente">
- <?php echo $combobit2; ?>
- <input type="text" name="nombrecliente" size:"40" />
- </select>
- <p/>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement