Tema: Split en php
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/04/2015, 12:49
el__tamer
 
Fecha de Ingreso: diciembre-2013
Mensajes: 81
Antigüedad: 10 años, 4 meses
Puntos: 1
Respuesta: Split en php

Código PHP:
Ver original
  1. <?php
  2. $sql = "SELECT * FROM cph_usuarios";
  3. $res = mysql_query($sql);
  4. $num = mysql_num_rows($res);
  5. ?>
  6. <table class="tablesorter">
  7.     <thead>
  8.     <tr>
  9.         <th width="1">Num Usuario</th>
  10.         <th>Nombre</th>
  11.         <th>Correo</th>
  12.         <th>Empresa</th>
  13.     </tr>
  14.     </thead>
  15.     <tbody>
  16.     <?php
  17.  
  18.     while($row = mysql_fetch_array($res)){
  19.      $esto = $row["USU_LOCALES"];
  20.          $condicion = explode(",", $esto);
  21.         ?>
  22.         <tr class="<?php echo $clase; ?>">  
  23.             <td><?php echo $condicion; ?></td>
  24.            
  25.         <?php }
  26.     ?>

igual me tira el error de array