我正在使用 php lib 图来显示数据库中的一些数据。当我在页面的 div 元素中使用它时,会显示图形图像。但我无法显示其他页面元素,如表单。
date_default_timezone_set("Asia/Calcutta");
include("includes.php");
include('phpgraphlib.php');
session_start();
$graph = new PHPGraphLib(350,280);
$data= array();
$Select_Query = "select level,sum(score) score,sum(total_time) total_time from
user_score where user_id='2' group by level";
$result_query = mysql_query($Select_Query);
$rows = mysql_num_rows($result_query);
while($row=mysql_fetch_array($result_query)){
$data[$row['level']] = $row['score'];
}
$graph->setBackgroundColor("black");
$graph->addData($data);
$graph->setBarColor('255,255,204');
$graph->setTitle('IQ Scores');
$graph->setTitleColor('yellow');
$graph->setupYAxis(12, 'yellow');
$graph->setupXAxis(20, 'yellow');
$graph->setGrid(false);
$graph->setGradient('silver', 'gray');
$graph->s`enter code here`etBarOutlineColor('white');
$graph->setTextColor('white');
$graph->setDataPoints(true);
$graph->setDataPointColor('yellow');
$graph->setLine(true);
$graph->setLineColor('yellow');
$graph->createGraph();
之后我有一些 html div 和表单。但只有图形图像显示在浏览器上,而不是表单。如何解决?