Hola comunidad tengo el siguiente problema, tengo una pagina web en la cual muestro mis registros en una tabla son mas de 5,000 pero solo me deja mostras 2,000 o 2,500.
Esta es la Query
SELECT
V.idViaje, V.CartaPorte, V.Referencia,
C.RazonSocial AS Cliente, V.Destino,
V.Contenedor1, V.Contenedor2, V.Contenedor3, V.Contenedor4,
V.Contenedor5, V.Contenedor6, V.Contenedor7, V.Contenedor8,
V.Contenedor9, V.Contenedor10, V.FechaAlta, V.Pagado
FROM viajes V
LEFT JOIN clientes C
ON V.idCliente=C.idCliente
ORDER BY V.idViaje DESC
LIMIT 0,1000
Pero en mi local host si me muestra todos los registros, solo le quite el LIMIT 0,1000
SELECT
V.idViaje, V.CartaPorte, V.Referencia,
C.RazonSocial AS Cliente, V.Destino,
V.Contenedor1, V.Contenedor2, V.Contenedor3, V.Contenedor4,
V.Contenedor5, V.Contenedor6, V.Contenedor7, V.Contenedor8,
V.Contenedor9, V.Contenedor10, V.FechaAlta, V.Pagado
FROM viajes V
LEFT JOIN clientes C
ON V.idCliente=C.idCliente
ORDER BY V.idViaje DESC
Se tiene que hacer alguna configuración adicional?
<table class="table table-striped table-bordered table-hover dataTables-example">
<thead>
<tr>
<th>Clave</th>
<th>Fecha</th>
<th>Referencia</th>
<th>Carta Porte</th>
<th>Cliente</th>
<th>Destino</th>
<th>Contenedor</th>
<?php
if($_COOKIE["lvl"]==1){
?>
<th>Pagado</th>
<?php
}
?>
<th>Acciones</th>
</tr>
</thead>
<tbody>
<?php
if($_COOKIE["lvl"]==1){
$result=query("SELECT V.idViaje,V.CartaPorte,V.Referencia,C.RazonSocial AS Cliente,V.Destino,V.Contenedor1,V.Contenedor2,V.Contenedor3,V.Contenedor4,V.Contenedor5,V.Contenedor6,V.Contenedor7,V.Contenedor8,V.Contenedor9,V.Contenedor10,V.FechaAlta,V.Pagado FROM viajes V LEFT JOIN clientes C ON V.idCliente=C.idCliente ORDER BY V.idViaje DESC LIMIT 0,1000");
}else{
$result=query("SELECT V.idViaje,V.Referencia,V.CartaPorte,C.RazonSocial AS Cliente,V.Destino,V.Contenedor1,V.Contenedor2,V.Contenedor3,V.Contenedor4,V.Contenedor5,V.Contenedor6,V.Contenedor7,V.Contenedor8,V.Contenedor9,V.Contenedor10,V.FechaAlta FROM viajes V LEFT JOIN clientes C ON V.idCliente=C.idCliente WHERE V.idCliente=".$_COOKIE["idUsuario"]." ORDER BY V.idViaje DESC LIMIT 0,200");
//$result=query("SELECT * FROM clientes WHERE idCliente=".$_COOKIE["idUsuario"]);
}
$contenedores="";
while($row = mysqli_fetch_array($result)) {
$contenedores="";
for ($i=1; $i <=10 ; $i++) {
$contenedor='Contenedor'.$i;
if($row[$contenedor] != ''){
$contenedores.=(empty($contenedores))? $row[$contenedor]: ' - '.$row[$contenedor];
}
}
?>
<tr class="gradeA" style="text-align:center;">
<td>
<?php echo $row["idViaje"]; ?>
</td>
<td style="width:110px">
<?php echo $row["FechaAlta"]; ?>
</td>
<td>
<?php echo $row["CartaPorte"]; ?>
</td>
<td>
<?php echo $row["Referencia"]; ?>
</td>
<td>
<?php echo $row["Cliente"]; ?>
</td>
<td>
<?php echo $row["Destino"]; ?>
</td>
<td>
<?php echo $contenedores; ?>
</td>
Este es el Logs
- [Wed Jul 24 09:20:39.682835 2019] [ssl:warn] [pid 4772:tid 696] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
- [Wed Jul 24 09:20:39.714051 2019] [core:warn] [pid 4772:tid 696] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
- [Wed Jul 24 09:20:39.714051 2019] [ssl:warn] [pid 4772:tid 696] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
- [Wed Jul 24 09:20:39.745295 2019] [mpm_winnt:notice] [pid 4772:tid 696] AH00455: Apache/2.4.38 (Win32) OpenSSL/1.1.1a PHP/7.3.2 configured -- resuming normal operations
- [Wed Jul 24 09:20:39.745295 2019] [mpm_winnt:notice] [pid 4772:tid 696] AH00456: Apache Lounge VC15 Server built: Jan 18 2019 12:31:19
- [Wed Jul 24 09:20:39.745295 2019] [core:notice] [pid 4772:tid 696] AH00094: Command line: 'c:\xampp\apache\bin\httpd.exe -d C:/xampp/apache'
- [Wed Jul 24 09:20:39.760943 2019] [mpm_winnt:notice] [pid 4772:tid 696] AH00418: Parent: Created child process 5852
- [Wed Jul 24 09:20:40.385795 2019] [ssl:warn] [pid 5852:tid 704] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
- [Wed Jul 24 09:20:40.432632 2019] [ssl:warn] [pid 5852:tid 704] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
- [Wed Jul 24 09:20:40.448283 2019] [mpm_winnt:notice] [pid 5852:tid 704] AH00354: Child: Starting 150 worker threads.
- [Wed Jul 24 09:52:18.841420 2019] [php7:notice] [pid 5852:tid 1976] [client ::1:53922] PHP Notice: Undefined index: usuario in C:\xampp\htdocs\containerallrisk-com\inc\menu.php on line 8
- [Wed Jul 24 09:52:18.841420 2019] [php7:notice] [pid 5852:tid 1976] [client ::1:53922] PHP Notice: Undefined index: lvl in C:\xampp\htdocs\containerallrisk-com\inc\menu.php on line 16
- [Wed Jul 24 09:52:18.841420 2019] [php7:notice] [pid 5852:tid 1976] [client ::1:53922] PHP Notice: Undefined index: lvl in C:\xampp\htdocs\containerallrisk-com\inc\menu.php on line 43