Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/03/2008, 12:38
barto3x
 
Fecha de Ingreso: enero-2008
Mensajes: 33
Antigüedad: 16 años, 3 meses
Puntos: 0
problema con libreria libchart php

hola a todos. estoy realizando un sistema de estadisticas. deseo realizar graficos utilizando la libreria libchart pero me surgio el siguiente problema al intentar realizar un grafico. al ejecutar el siguiente codigo

// ***********************
// REALIZANDO EL GRAFICO
$this->db->PConnect();
$canales = array();
echo $sql = "SELECT * FROM valor_canales WHERE (id_canal='21') AND (valor_fecha='2008-03-13')";
$res = $this->db->GetRow($sql);
if ( $res ) {
$valores = $res;
}
$this->db->Close();

$chart->addPoint(new Point($valores['valor_pag_vistas']));
$chart->render("demo2.png");
$chart = new VerticalBarChart(500, 250);
$chart->setTitle("Paginas Vistas 2008");
$chart->render("files/ejemplo.png");

?>

<html>

<head>

<title> imagen </title>

</head>


<body>

<img src="files/ejemplo.png" />

</body>

</html>

me arroja el siguiente error:

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in C:\produccion2\wwwrootES\estadisticas\libchart\cla sses\model\Point.php on line 27

alguien sabe como puedo solucionar esto? espero haberme explicado bien.

saludos.