PDA

View Full Version : DBI and DBD::mysql


Eloff
2-15-02, 08:40 PM
The folks at powweb tell me they are installed, but why doesn't my test script work? perhaps you guys would be able to help me. I'm new to using DBI/DBD so...

My script is:

use DBI;
use DBD::MySQL;

#prepare the browser for text/html output
print "Content-type: text/html\n\n";

print 'DBI and DBD::MySQL are installed';

This should generate an error if one of the above isn't installed, it does generate an error, and if I look at the errorlog it says it can't find DBD. Any ideas?

Bud
2-16-02, 07:12 AM
Both are installed on the server, try using lowercase (mysql) with DBD:

DBD::mysql

~bud

Eloff
2-16-02, 01:39 PM
Thanks mate:) It works now. Now I can start the fun stuff:) Have a good day.

Bud
2-17-02, 08:17 AM
Glad it's working :)