Never mind, I figured it out, so please ignore my earlier response. The full working script now reads:
<?
mysql_connect ($host, $user, $password);
$result = mysql($database,"select $field_name, $field_name2 from $table");
$num = mysql_numrows($result);
Require ("graphite.inc");
$test = new graphite();
$test->filename = "mypng.png";
$test->width = 400;
$test->height = 300;
$test->y_axis_label = "$";
$test->y_lables = xrange(0, 100, 10);
$test->x_axis_label = "Author";
$i = 0;
while ($row = mysql_fetch_array ($result)) {
$test->data[$i] = $row[$field_name];
$test->data_lables[$i] = $row[$field_name2];
$i++;
}
$test->init();
$test->prep();
$test->plot(20);
$test->close();
?>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>Graphite</TITLE>
</HEAD>
<BODY>
<IMG SRC="mypng.png">
</BODY>
</HEAD>
Thanks again for your suggestion. It just took a while for me to see how to incorporate it.
DL