in reply to Persistent DBI connection with mySQL

Apache::DBI. All you need to do is add use Apache::DBI; before use DBI;.

Update: Hmmm...appears I don't remember how to use Apache::DBI.

antirice    
The first rule of Perl club is - use Perl
The
ith rule of Perl club is - follow rule i - 1 for i > 1

Replies are listed 'Best First'.
Re: Re: Persistent DBI connection with mySQL
by PodMaster (Abbot) on Jul 18, 2003 at 10:52 UTC
    No no no no no. `perldoc Apache::DBI':
    
    NAME
        Apache::DBI - Initiate a persistent database connection
    
    SYNOPSIS
         # Configuration in httpd.conf or startup.pl:
    
         PerlModule Apache::DBI  # this comes before all other modules using DBI
    
        Do NOT change anything in your scripts. The usage of this module is
        absolutely transparent !
    

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.