Mistři v programování na #hovnokod

PHP #4303

<?php

$res = $my->query("SELECT * FROM `stats`");
$b = $res->fetch_object();

$res2 = $my->query("SELECT * FROM `stats2`");
$a = $res2->fetch_object();


?>




<table cellpadding="5" cellspacing = "3" border="4" width="20" 	height="20" bgcolor="white" bordercolor="black"> 

<tr>

   <td> Stránka </td>   <td> Zobrazení</td>     <td> Výpočtů </td>

</tr>


<tr>

   <td><?php echo $b->name; ?></td>   <td><?php echo $b->show; ?> </td>     <td> <?php echo $b->count ?></td>

</tr> 
</table>       </br>


<table cellpadding="5" cellspacing = "3" border="4" width="20" 	height="20" bgcolor="white" bordercolor="black"> 

<tr>

   <td> Stránka </td>   <td> Zobrazení</td>     

</tr>

   <?php while($a = $res2->fetch_object()) {   ?>
<tr>
    
   <td><?php echo $a->name; ?></td>   <td><?php echo $a->zob; ?> </td>     
  
</tr><?php } ?>  
</table>

Anonymous,