Ver Mensaje Individual
  #4 (permalink)  
Antiguo 17/02/2016, 20:13
Reguets
 
Fecha de Ingreso: mayo-2008
Mensajes: 4
Antigüedad: 16 años
Puntos: 0
Respuesta: Llener array de fechas generado con php con resultado Mysql

Código PHP:
Ver original
  1. for($i=$fecha1;$i<=$fecha2;$i = date("Y-m-d", strtotime($i ."+ 1 days"))){
  2. $fila = mysql_fetch_array($resultado);
  3. if ($i == $fila['fecha'])
  4. echo "['".date('d/m/Y', strtotime($fila['fecha']))."',".$fila['visitas_semana']."],";
  5. else
  6. echo "['".date('d/m/Y', strtotime($i))."',0],";
  7. }