#!/usr/bin/perl use strict; use DBI; use CGI qw(:standard); use CGI::Carp "fatalsToBrowser"; my $dbh = DBI->connect("dbi:mysql:database=dbname;host=localhost", "uname", "pword") ; print header ; print "<HTML>" ; if ( ! $dbh ) { print "$DBI::errstr: not "; } print "connected" ; print "</HTML>" ; $dbh->disconnect() if $dbh ;
In reply to Re: dbh connections: stumped!
by jeanluca
in thread dbh connections: stumped!
by kevin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |