<?php $r="../../";
require_once($r."inc/funciones.php");
$mysqli = connectDB($r);
?>
<div id="divpago" class="row mt-1">
  <select class="form-control col-6 ml-1" name="medios[]">
      <? $sqlmpagos = $mysqli->query("SELECT * FROM z_pagos_medios"); while($rowmpagos = $sqlmpagos->fetch_assoc()) { ?><option value="<?= $rowmpagos['id']; ?>"><?= $rowmpagos['medio']; ?></option><? } ?>
  </select>
  <input type="number" class="form-control col-5 ml-1 monto"  onchange="sumamontos()" name="moton[]">
</div>