Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/07/2011, 05:50
Avatar de Soir
Soir
 
Fecha de Ingreso: marzo-2011
Mensajes: 40
Antigüedad: 13 años, 1 mes
Puntos: 1
Problema con tabla PHP

Hola!.

Tengo esta tabla en PHP:

Código PHP:
<table id="order-history">
<thead>
<tr>
<th align="left"><a href="#" class="sort-link numeric"><span class="arrow">Pedido</span></a></th>
<th align="left">Producto</th>
<th>Cantidad</th>
<th>Estado</th>
</tr>
</thead>
<tbody>
<tr class="parent-row" onclick="">
<td valign="top"><a href="#"><?php echo $results_historial[guid]; ?></a></td>

<td valign="top">
<strong data-service-id="null"><?php echo $results_historial[factura]; ?></strong>
</td>
<td valign="top" class="align-center"><?php echo $results_historial[cantidad]; ?></td>
<td valign="top" class="align-center status-success">
<?php echo $results_historial[estado]; ?>
</td>
</tr>
</tbody>
</table>
Que utiliza esta sentencia SQL:
Código:
$query_historial = db_query("SELECT guid, cantidad, factura, estado FROM historial WHERE id_cuenta = '".$user_check_accountid."' ORDER BY guid DESC LIMIT 10");
$results_historial = mysqli_fetch_array($query_historial);
Y el problema, es que yo en esa tabla, relacionada con mi cuenta tengo unos 25 datos... Pero en la tabla sólo se muestra 1.

Es decir, de los 25 datos que hay que se deberían mostrar, sólo se ve 1:



¿Cómo se podría solucionar?
Gracias ^^.