belltree哥,顺便再问你一个问题
在PHP中如何用JOIN语句?? 我好象记得在PHP中不时用JOIN标记的,...
作者 xiaobinB 发布于 2003-08-01 分类:php基础编程
假设我的主程序是main.php,我获得了需要作图的数组$ydata=array(); 然后调用graph.php,在网页中插入动态图片(网页中还有其他内容)。程序是。问题是,怎么把数组$ydata传给graph.php呢?或者还有其他方法实现么?
我的问题清楚么?
假定graph.php用jpgraph的例子:
<?php
include ( "jpgraph/src/jpgraph.php");
include ("jpgraph/src/jpgraph_line.php");
// Some data
//这里是需要做图的数组,需要从main.php传过来
//$ydata = array(11,3, 8,12,5 ,1,9, 13,5,7 );
// Create the graph. These two calls are always required
$graph = new Graph(560, 360,"auto");
$graph->SetScale( "textlin");
// Create the linear plot
$lineplot =new LinePlot($ydata);
$lineplot ->SetColor("blue");
// Add the plot to the graph
$graph->Add( $lineplot);
// Display the graph
$graph->Stroke();
?>
逛论坛交流:还是jpgraph的问题:怎么把数组传给作图程序
0 条回复
回复