I have a problem with passing the query that returns a number of records, I already have it with a select that returns an input, but this only works with one record, but more than one needs to be shown, so everything that the query brings me I need to put it in a table.
<?php
$conexion=mysqli_connect('localhost','root','mysql','venta3');
$continente=$_POST['continente'];
$sql1="SELECT cobro, debe,idEntrega FROM inventario Where (idCliente='$continente'AND (cantidadP>0 or cantidadM>0 OR cantidadG>0))";
$result2=mysqli_query($conexion,$sql1);
$cadena2="<select id='cobroDebe' name='cobroDebe' style='width:400px;' class='chosen-choices2'>";
while ($ver2=mysqli_fetch_row($result2)) {
$cadena2=$cadena2."<option value='".utf8_encode($ver2[1])."'>".utf8_encode($ver2[1])."</option>";
}
echo $cadena2."</select>";
$result1=mysqli_query($conexion,$sql1);
$cadena1="<select id='cobroEntre' name='cobroEntre' style='width:400px;' class='chosen-choices2'>";
while ($ver1=mysqli_fetch_row($result1)) {
$cadena1=$cadena1."<option value='".utf8_encode($ver1[0])."'>".utf8_encode($ver1[0])."</option>";
}
echo $cadena1."</select>";
$result3=mysqli_query($conexion,$sql1);
$cadena3=" ";
while ($ver3=mysqli_fetch_row($result3)) {
$cadena3=$cadena3."<input type='hidden' id='idEntrega' name='idEntrega'
value='".utf8_encode($ver3[2])."'>";
}
echo $cadena3;
?>