gracias por tu amable respuesta.
Aquí te tengo el código anterior por que no he empezado lo que te comento ya que no se como hacerlo.
Código PHP:
Ver original<?php
include('conexion.php');
$query = 'SELECT * FROM info';
$resultado =$conexion->query($query);
?>
<!DOCTYPE html>
<html lang="es">
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="../css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link rel="stylesheet" href="../css/mostrar.css" rel="stylesheet" media="screen,projection"/>
</head>
<body>
<nav class="light-blue lighten-1" role="navigation">
<div class="titulo">
<div class="nav-wrapper container"><a id="logo-container" href="#" class="brand-logo1">Mis Cuentas</a>
</div>
<ul class="right hide-on-med-and-down">
</ul>
</div>
</nav>
</div>
<?php
echo '<h5 align=center><a href="/app/admin/logout.php">Logout</a></h5>';
?>
</div>
</form>
<table border='1' id="tabla1" >
<th>Ingresos</th>
<th>Egresos</th>
<th>Comentarios.</th>
<th>fecha</th>
<th>Acción</th>
</tr>
<tbody>
<?php while($row=$resultado->fetch_assoc()){ ?>
<tr>
<td><?php echo $row['ingreso'];?></td>
<td><?php echo $row['egreso'];?></td>
<td><?php echo $row['comentarios'];?></td>
<td><?php echo $row['fecha'];?></td>
<td><a class="waves-effect waves-light btn-large" href="eliminar.php?id=<?php echo $row['id'];?>" onclick="return confirm('deseas elimar al este usuarucho del sistema?');">Eliminar</a></td>
</tr>
</tbody>
<?php } ?>
<br></br>
<table class="resultado" border='1' id="tabla2" >
<?php
$sql = "SELECT SUM(ingreso) as Total1, SUM(egreso) as Total2 FROM info ";
$resultado=$conexion->query($sql);
$row=$resultado->fetch_assoc();
$Total1 = $row['Total1'];
$Total2 = $row['Total2'];
$resta = $Total1 - $Total2;
/*echo $resta;
echo $row['Total'];
echo number_format($row['Total1'], 000, '', '.'); con seperador de miles
*/
?>
<th>TOTAL INGRESOS</th>
<th>TOTAL GASTOS</th>
<th>BILLETERA</th>
<tr>
<td step="any">
<?php echo number_format($row['Total1'], 0, '', '.');;?></td>
<td step="any">
<?php echo number_format($row['Total2'], 0, '', '.');?></td>
<td step="any">
<?php echo number_format($resta, 0, '', '.');?></td>
</table>
</table>
<br></br>
<a href="http://www.forosdelweb.com/f18/index2.html" class="waves-effect waves-light btn-large">Entradas</a>
</body>
</html>