
erichmusickwc
Novice
Mar 4, 2003, 3:08 PM
Post #4 of 8
(17208 views)
|
Re: [peji] Can't locate object method "connect" via package "dbi"...
[In reply to]
|
Can't Post
|
|
Hmm.... First off one problem I see in the code is that you set $driver equal to dbi. What should go here is a special code for the database software you are running. For example, I use DBI with mysql, so I would put mysql for $driver. Second, try adding $dbh->disconnect(); after the code you listed. (This should fix the warning "Database handle destroyed without explicit disconnect." Also, do you print the content-type header anywhere?
|