need sql help
I purchased a script and I can't connect to the database and when i debug the script it tells me that it cannot locate the DBI. here is the script can anyone tell me if it is configured right.
$dbh = DBI->connect("dbi:mysql:$mysqldatabasename","$mysqlusername","$mysqlpassword") || die("Couldn't connect to database!\n");
This is a perl connection string, based on the sample given at my host's general info section.
The only difference is where you have
my sample code says
I know nothing about Perl however, and it could just be specific to my site. Also mine doesn't have the or die bit.
I assume you are substitutiing your databasename, username and password, and not leaving it as the variable equivalents.