Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/01/2017, 20:16
Avatar de classmorri
classmorri
 
Fecha de Ingreso: octubre-2014
Mensajes: 20
Antigüedad: 9 años, 6 meses
Puntos: 0
Sonrisa Cargar dos tablas con while

hola!

eh logrado cargar una tabla de manera correcta en mi proyecto pero a la hora de hacer lo mismo para otra tabla diferente no me muestra nada, este es mi codigo.

el primer while si funciona pero el segundo aunque copie el mismo codigo añadiendo un 2 a las variables pense que funcionaria :P

Código:
				<div class="col s12 m4">
      <ul class="collection with-header">
        <li class="collection-header"><h4>DOGE</h4><br> Dogecoin<br>
        <span style="font-size: 10px;" class="yellow-text text-darken-3">DMh7stGqfnzRfeuq7tB8pZKzaW8Lyeb5Qm</span></li>

<?php
$doge = mysql_query('SELECT * FROM MatrixDOGE ORDER by ID DESC LIMIT 10');
while ($row = mysql_fetch_array($doge)){
	$id = $row['id'];
	$usuario = $row['usuario'];
	$hash = $row['hash'];
	$monto = $row['monto'];

?>
        <li class="collection-item">
        <b><?php echo "$usuario"; ?></b><br>
        <?php echo "$monto"; ?> DOGE - <a href="<?php echo "$hash"; ?>" target="_blank">HASH ID</a>
        </li>
<?php
}
?>
      </ul>					
				</div>

				<div class="col s12 m4">
      <ul class="collection with-header">
        <li class="collection-header"><h4>ETH</h4><br> Ethereum<br>
        <span style="font-size: 10px;" class="yellow-text text-darken-3">0x014637AD8FB30a30eB0D6316f6C06f63E8F9024d</span></li>

<?php
$eth = mysql_query('SELECT * FROM MatrixETH ORDER by ID DESC LIMIT 10');
while ($row2 = mysql_fetch_array($eth)){

	$id2 = $row2['id2'];
	$usuario2 = $row2['usuario2'];
	$hash2 = $row2['hash2'];
	$monto2 = $row2['monto2'];

?>

        <li class="collection-item">
        <b><?php echo "$usuario2"; ?></b><br>
        <?php echo "$monto2"; ?> ETH - <a href="<?php echo "$hash2"; ?>" target="_blank">HASH ID</a>
        </li>
<?php
}
?>

      </ul>					
				</div>

			</div>

		</div>