All pastes #343138 Raw Edit

Something

public text v1 · immutable
·published 2007-02-06 20:25 UTC
rendered paste body
         <?php
    /*
     * fazendo um loop para mostrar os resultados
     */
   
      ?>
   
      <table width="200" border="1">
   
        <tr>
  
          <th scope="col">id</th>
  
          <th scope="col">IP</th>
  
          <th scope="col">MAC</th>
  
        </tr>
  
      </table>
  
       
        <?
        while ($linha=mysql_fetch_array($resultado))
        {
  
      ?><table width="200" border="1">
  
        <tr>
  
          <th scope="col"><?php echo $linha['id']; ?></th>
          <th scope="col"><?php echo $linha['ip']; ?></th>
          <th scope="col"><?php echo $linha['mac']; ?></th>
  
        </tr>
        </table><?php
      }
  
       
  
      ?>