on Mon, 20 May 2002 20:39:54 GMT, [EMAIL PROTECTED] (Shaunn Johnson)
wrote:
> I think I need a second pair of eyes.
> #!/usr/bin/perl -w
> use diagnostics;
> use CGI;
> use GD::Graph::lines;
> use DBI;
It wouldn't hurt adding
use strict;
here. You will have to declare a lot of variables though.
> while ($row = $sth->fetchrow_array())
the 'fetchrow_array' fetches, well, an array, which you (try to) store
into a scalar variable. Did you mistake it for 'fetchrow_arrayref'?
> my @data = ([\@enter_dt], [ \@se, \@pos, \@west, \@east, \@mid ] );
Your data array should contain references to your data-sets, one
reference per set. You are having references of references here. Either
leave out the [] completely, or don't take references to the datasets:
Either
my @data = ( \@enter_dt, \@se, \@pos, \@west, \@east, \@mid );
or
my @data = ( [@enter_dt], [@se], [@pos], [@west], [@east], [@mid]);
will do.
--
felix
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]