Results 1 to 2 of 2
Thread: need sql help
May 19, 2004, 14:54 #1
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");
May 20, 2004, 14:23 #2
- Join Date
- Jul 2003
- 1 Post(s)
- 0 Thread(s)
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.Dr John