Gracias, aun no arroja lo que necesito. me muestra solo el resultado de una columna.
   
Código PHP:
Ver original- <html><head> 
- <title>CDI</title> 
- <link  rel="stylesheet" type="text/css"  href="../../css/hojadeestilo.css"> 
- <style> 
- table {width:99%;} 
- #bordesc { 
-     border: #06F 1px solid; 
-     width: 100%; 
-     background-color: #FFF; 
-     border-radius: 0px; 
-     -moz-border-radius: 0px; 
-     -webkit-border-radius: 0px; 
-      
- } 
- </style> 
- <style>a{cursor:pointer;}</style> 
- </head> 
- <body>  
- <div class="tablas"></div> 
- <table  border="0" cellspacing="0" cellpadding="4" align="center"> 
-               <tr>           
-               <td><p align="center"><b>Estado de los medicamentos</b></p></td>              
-               </tr> 
-            </table>          
- <tr>  <tr> 
-         <td height="125" align="center">  
-   <table  border="0" cellspacing="0" cellpadding="4" align="center"> 
-               <tr> 
- <td> 
-   <?php  
- include ("../../../funciones/conexion.php"); 
- $con = mysqli_connect($host, $user, $pass)-  or  die("Error al conectarse al servidor");
 
- $resultingreso = mysqli_query($con, "SELECT  cantidad_recibida,medicamento FROM medicina GROUP BY cantidad_recibida");   
- $resultegreso = mysqli_query($con, "SELECT  cantidad_entregada FROM entrega GROUP BY cantidad_entregada"); 
-   
-   
- {  
- ?>  
- <table border="1" width="100%" id="bordesc">  
- <tr>  
- <th>Medicina</th>  
- <th>Ingreso</th>  
- <th>Egreso</th>  
- <th>Disponible</th>  
- </tr>  
- <?php 
-   
- {  
- $totaling=$datos['cantidad_recibida']; 
- $totalegre=$resultegre['cantidad_entregada']; 
- $saldo = $totaling - $totalegre; 
- ?>  
- <tr>  
- <td align="center"> <?=$datos["medicamento"]?></td>  
- <td align="center"> <?=$datos["cantidad_recibida"]?> Bs</td>  
- <td align="center"><?=$resultegre["cantidad_entregada"]?> Bs</td>  
- <td align="center"><?php echo''.$saldo.'';?> Bs</td>  
- </tr>  
- <?php  
- }  
- ?>  
- </table>  
- <?php  
- } else {  
- echo "No se encontraron datos en la base de datos";  
- }  
- ?> 
-   
-  <p align="right"><a href="http://www.forosdelweb.com/index.php"></a></p></td></tr></table> 
-   </body> 
-   </html>