in reply to Re: Voting script using MySQL and DBI
in thread Voting script using MySQL and DBI
That should AFAIK be correct, as long as it is one Db then issuing the connect() command once is sufficient for multiple queries.
As for the error info try something like:
This will give you more detail as 'to what is going on'.my $dbh = DBI->connect ("DBI:${dbtype}:${dbname}", "$dbuser", "$dbpass +") || die $DBI::errstr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: Voting script using MySQL and DBI
by jeffa (Bishop) on Aug 31, 2002 at 17:50 UTC | |
by lagrenouille (Acolyte) on Sep 01, 2002 at 02:21 UTC | |
by chromatic (Archbishop) on Sep 01, 2002 at 03:20 UTC |