
Dubbs1231
newbie
Mar 16, 2001, 6:53 PM
Post #5 of 7
(999 views)
|
is there a way to automatically determine which DBD module to use? when i connect, i use: my $dbh = DBI->connect("DBI:mysql:database=$CONF{'database'};host=localhost", "$CONF{'username'}", "$CONF{'password'}") or &error("<I>Couldn't connect to database:</I> " . DBI->errstr); if i were using oracle, it would look like my $dbh = DBI->connect("DBI:oracle:database=$CONF{'database'};host=localhost", "$CONF{'username'}", "$CONF{'password'}") or &error("<I>Couldn't connect to database:</I> " . DBI->errstr); what do i do to get it to automatically determine the part i put in bold?
|