RUTA_GET.PHP
Código PHP:
Ver original
<?php $origendestino = isset($_POST['origendestino']) ? mysql_real_escape_string($_POST['borigendestino']) : ''; $offset = ($page-1)*$rows; include 'conectar.php'; $where = "origendestino like '$origendestino%'"; $resultado["miruta"] = $row[0]; // $rs = mysqli_query($conexion,"select * from proveedor where " . $where . " limit " .$offset.",".$rows) or die (mysqli_eror()); //$sql="select * from proveedor where " . $where . " limit " . $offset. "," .$rows; $sql = "select * from ruta where " . $where . " limit $offset,$rows"; } $resultado["rows"] = $items; ?>
VEHICULOS_GET.PHP
Código PHP:
Ver original
<?php $offset = ($page-1)*$rows; include 'conectar.php'; $where = "patente like '$patente%' and marca like '$marca%'"; $result["total"] = $row[0]; // $rs = mysqli_query($conexion,"select * from proveedor where " . $where . " limit " .$offset.",".$rows) or die (mysqli_eror()); //$sql="select * from proveedor where " . $where . " limit " . $offset. "," .$rows; $sql = "select * from vehiculo where " . $where . " limit $offset,$rows"; } $result["rows"] = $items; ?>