麻辣堂|资源主站|开发论坛|在线手册
首页 Apache Linux Java MySQL 注册帮助 
PHP项目开发组是PHP开发资源网于2007组年建成立的项目开发团队,目前核心开发成员有27人, 项目协作成员8名.下设7个开发组,主要承接大/中型网站项目开发任务。

    由于开发任务较多,人员比较紧张,现面向社会招聘全职或者兼职开发人员,不管你是在校大学生,还是全职开发人员,以及SOHO都可以联系本站,我们可以长期合作,并为您带来丰厚的报酬。
  您现在的位置:PHP开发资源网 > 麻辣堂 > 详细资料
待解决
大家帮我看看这个画图程序 谢谢!
悬赏分:20 - 2007年08月21日

<?php
include ("../../jpgraph/src/jpgraph.php");
include ("../../jpgraph/src/jpgraph_bar.php");

$sql="select * from 帐户";
$result=mssql_query($sql,$link);
if($myrow=mssql_fetch_array($result)) {
do
{

$bh=$myrow["编号"];
$array[] = $bh;


}while($myrow=mssql_fetch_array($result));
}
if($result) mssql_free_result($result);


$datay=array(12,8,88.5,3,10,5,68,78,178,128,89,68); (如何利用上面的循环把数组变着这样的形式啊)

// Create the graph. These two calls are always required
$graph = new Graph(500,300,"auto");
$graph->SetScale("textlin");

// Add a drop shadow
$graph->SetShadow();

// Adjust the margin a bit to make more room for titles
$graph->img->SetMargin(40,30,20,40);

// Create a bar pot
$bplot = new BarPlot($datay);

// Adjust fill color
$bplot->SetFillColor('red');
$bplot->value->Show();
$graph->Add($bplot);

// Setup the titles
$graph->title->Set("tes");
$graph->xaxis->title->Set("X-title");
$graph->yaxis->title->Set("Y-title");

$graph->title->SetFont(FF_SIMSUN,FS_NORMAL,10);
$graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD);
$graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD);

// Display the graph
$graph->Stroke();
?>

提问者:wimnr   08-21 16:04
答复
路过。。。顺便帮顶:)
回答者:玉米づ冰冻可乐 - 瓦岗村民 8-22 09:10
我也来回答:
不管你有没有帮助我们,瓦岗寨8万村民将感谢你。。。。。

为防止灌水,您需要计算一道数学题: 答案:
65 + 14 = ? 请将计算结果填在上面

 
[]
©2007 PhpRes.COM