PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > The PowWeb Platform > Perl
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools
Old 2-15-02, 08:40 PM   #1
Eloff
Guest
 
Posts: n/a
DBI and DBD::mysql

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?
 
Old 2-16-02, 07:12 AM   #2
Bud
Guest
 
Posts: n/a
Both are installed on the server, try using lowercase (mysql) with DBD:

DBD::mysql

~bud
 
Old 2-16-02, 01:39 PM   #3
Eloff
Guest
 
Posts: n/a
IT WORKS!

Thanks mate It works now. Now I can start the fun stuff Have a good day.
 
Old 2-17-02, 08:17 AM   #4
Bud
Guest
 
Posts: n/a
Glad it's working
 
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:22 PM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.