perleager has asked for the wisdom of the Perl Monks concerning the following question:
Prints out:use DBI; $dbh = DBI->connect('DBI:mysql:dataflex') or die "Couldn't connect to +database: " . DBI->errstr; $sql = "SELECT * FROM dataflex where attorney = '$INPUT{'attorney'}' a +nd where issue = '$INPUT{'issue'}'"; $sth = $dbh->prepare($sql) or print "preparing: ",$dbh->errstr; $sth->execute or print "executing: ", $dbh->errstr; } $dbh->disconnect;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: DBI and MySQL
by Kanji (Parson) on Jul 12, 2002 at 06:06 UTC | |
Re: DBI and MySQL
by Trimbach (Curate) on Jul 12, 2002 at 11:42 UTC | |
Re: DBI and MySQL
by George_Sherston (Vicar) on Jul 12, 2002 at 09:36 UTC | |
Re: DBI and MySQL
by talexb (Chancellor) on Jul 12, 2002 at 13:44 UTC | |
Re: DBI and MySQL
by dmmiller2k (Chaplain) on Jul 12, 2002 at 14:04 UTC |