October 9th, 2000, 10:11 AM
Join Date: Jun 2000
Time spent in forums: < 1 sec
Reputation Power: 14
I added that line, but nothing changed.
Beginning of my script look like this:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
use lib '/home/sites/site337/cgi-bin';
my $dbh = DBI->connect('DBI:MySql:upitniknet', 'upitnik', 'xxxyyy')
or die "Couldn't connect to database: " . DBI->errstr;
my $sth = $dbh->prepare('SELECT * FROM test WHERE lastname = ?')
or die "Couldn't prepare statement: " . $dbh->errstr;
I even tried to add:
"use lib '/home/sites/site337/cgi-bin/DBD';"
but it is same.
[This message has been edited by Pepe (edited October 09, 2000).]