Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/07/2005, 15:39
cpwebs
 
Fecha de Ingreso: abril-2002
Ubicación: Buacaramanga - Colombia
Mensajes: 46
Antigüedad: 22 años
Puntos: 0
php+access+Jpgrah

Funciona perfecto en PHP+jpgraph+MySQL
Código PHP:
$db mysql_connect("localhost""user","password") or die(mysql_error());
mysql_select_db("test",$db) or die(mysql_error());
$sql mysql_query("SELECT * FROM students") or die(mysql_error());
while(
$row mysql_fetch_array($sql))
{
$data[] = $row[1];
//$leg[] = $row[0];

Pero con PHP+jpgraph+Access Genera el error en una grafica
JpGraph Error Illegal pie plot, Sum of all data is zero Pie!
Código PHP:
$db odbc_connect("test","","","");
$sqlodbc_exec($db,"select * from students");
while(
$row odbc_fetch_array($sql))
{
$data[] = $row[1];
//$leg[] = $row[0];
}
odbc_close_all(); 
Pdt: Uso php5.0.4
__________________
Tino
Linuxcol Soluciones Linux, Manuales, Noticias, foros, Seguridad
Linuxcol.com