I suggest getting the O'Reilly Programming the Perl DBI book. It has lots of
examples for different databases.
michelle
Oh my gosh, a question I can actually answer!
#! /usr/bin/perl -wT
use CGI;
use DBI;
#parse form data here or whatever else you need to do
### CONNECT TO DATABASE ###
$dbh = DBI->connect("DBI:mysql:nameofyourdatabase", "yourdatabase",
"password") || die $DBI::errstr;
### BUILD QUERY ##
Thanks for the replies! (Especially you, Dean :)
I finally got it to work. YAY!
Here's the code that worked if anyone is interested:
#! /usr/bin/perl -wT
use CGI;
use DBI;
use CGI::Carp qw(fatalsToBrowser);
$dbh = DBI->connect("DBI:mysql:mydatabase", "username", "password") || die
$DBI::err
Hello Everyone,
The code I'm including makes the line graph I want, except that no points are
plotted. It comes out as an empty graph with only the 0 for elevation on the
Y-axis label and the first date, 2001-01-01, on the X-axis label. I have
absolutely no idea why. I've tried two methods
Hello,
I was wondering if anyone has some code that they know works using DBD::Chart
that I could test my installation with?
I'd really like something simple so I can see how it works. Any help would
be appreciated.
Michelle Donahue