Ver Mensaje Individual
  #16 (permalink)  
Antiguo 21/03/2005, 10:40
MartinTandil
 
Fecha de Ingreso: marzo-2005
Mensajes: 163
Antigüedad: 19 años, 1 mes
Puntos: 0
Cita:
Iniciado por fran86
MartinTandil,
array_push($fecha,$row[0])
es lo mismo que....
$fecha[] = $row[0];

http://www.php.net/array_push

Saludos
Gracias, esto es lo que no estaba seguro.Arameo ya probaste con el codigo que armo josemi:

Código PHP:
<?php
set_time_limit
(0);
$conectID mssql_connect("F841CCR21645","SA","");
mssql_select_db("lista");
$result=mssql_query("select fecha,llamadas from Nueva_esparta where fecha >= CONVERT(CHAR(8), DATEADD(DD, -60, GETDATE()), 112) order by 1 asc");

$fecha=array(); 
$cantidad=array(); 
while(
$row mssql_fetch_array($result)){ 
    
$fecha[] = $row[0]; 
    
$cantidad[] = $row[1]; 


require_once(
"../lib/phpchartdir.php");
#The data for the line chart
$data $cantidad// $cantidad es ya un array 
#The labels for the line chart
$labels $fecha;
#Create a XYChart object of size 250 x 250 pixels
$c = new XYChart(9502050);
#Set the plotarea at (30, 20) and of size 200 x 200 pixels
$c->setPlotArea(3020800800);
#Add a line chart layer using the given data
$c->addLineLayer($data);
#Set the x axis labels using the given labels
$c->xAxis->setLabels($labels);
#output the chart
header("Content-type: image/png");
print(
$c->makeChart2(PNG));
?>
Este codigo deberia de andar si la consulta te devuelve todos los resultados deseados.
Suerte