Loading ...
Sorry, an error occurred while loading the content.

Re: Apache::DBI->connect_on_init

Expand Messages
  • Stas Bekman
    ... Just like you did before you have used Apache::DBI. perldoc Apache::DBI: Do NOT change anything in your scripts. The usage of this module is absolutely
    Message 1 of 2 , Apr 30, 2003
    • 0 Attachment
      Jeremy Cowgar wrote:
      > I issue:
      >
      > Apache::DBI->connect_on_init("DBI:mysql:cp",'user','pass',
      > {
      > PrintError => 1,
      > AutoCommit => 1,
      > }) || die "MySQL Connect failed";
      >
      > in my startup.pl ... How do I now access the $dbh?

      Just like you did before you have used Apache::DBI.

      perldoc Apache::DBI:

      Do NOT change anything in your scripts. The usage of this module is
      absolutely transparent !

      and read the rest of the manpage.
      __________________________________________________________________
      Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
      http://stason.org/ mod_perl Guide ---> http://perl.apache.org
      mailto:stas@... http://use.perl.org http://apacheweek.com
      http://modperlbook.org http://apache.org http://ticketmaster.com
    Your message has been successfully submitted and would be delivered to recipients shortly.