Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: DBI script works on command line but not in browser

by Zombie codehopper (Initiate)
on Mar 07, 2003 at 18:10 UTC ( #241215=note: print w/replies, xml ) Need Help??


in reply to DBI script works on command line but not in browser

use DBI;
my $dbh = DBI->connect("DBI:mysql:databasename:server", "user","password")
    or die "Couldn't connect to database";
  • Comment on Re: DBI script works on command line but not in browser

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://241215]
help
Chatterbox?
[1nickt]: (Also takes a compiled regexp as an arg to filter the list)
[1nickt]: For multiple dirs use iterator(): $it = path("/foo")-> iterator; while ( my $path = $it->() ) {...}
[1nickt]: (also skips . and .. automatically, and follows subdirs if you set <c\>recurse => 1</c>
[1nickt]: $it = path("/foo")-> iterator(recurse => 1 );

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2017-03-28 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (339 votes). Check out past polls.