Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/09/2014, 17:22
Avatar de NSD
NSD
Colaborador
 
Fecha de Ingreso: mayo-2012
Ubicación: Somewhere
Mensajes: 1.332
Antigüedad: 12 años
Puntos: 320
Respuesta: Problemas al mostrar datos de un Array

Código PHP:
Ver original
  1. include('../panel/conexion.php');
  2.  
  3. $sql = @mysql_query('SELECT * FROM calendar');
  4. $datos = @mysql_fetch_array($sql); // Debes eliminar esta linea
  5.  
  6. $i = 0;
  7. while($row = @mysql_fetch_array($sql)){
  8.     $rawdata[$i] = $row;
  9.     $i++;
  10. }
  11.  
  12. for($i = 0 ; $i < count($rawdata); $i++){  
  13.     $valoresArray[$i] = $rawdata[$i][1];  
  14. }
__________________
Maratón de desafíos PHP Junio - Agosto 2015 en FDW | Reglamento - Desafios