thks for all
----- Original Message ----- From: "Josh Chamas" <[EMAIL PROTECTED]> To: "William Agasvari" <[EMAIL PROTECTED]> Cc: "Farshid Dabesh-Khoy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, April 01, 2003 9:21 AM Subject: Re: FW: ASP db connection > William Agasvari wrote: > > A exemple APACHE::ASP code source to : > > > > - connection code mysql > > + single query ( select ) > > > > I am taking this from http://chamas.com/bench/ source for my_hellodb.asp test: > > <% > use vars qw($dbh); > my($user,$pass) = split(/\//, $Server->Config('mysql_auth')); > $dbh ||= DBI->connect("dbi:mysql:", $user, $pass, { RaiseError => 1 }); > my $data = $dbh->selectrow_array("select 'Hello DB'"); > print $data; > %> > > You will want to use Apache::DBI too, make sure to install and > "perldoc Apache::DBI". > > --Josh > ________________________________________________________________ > Josh Chamas, Founder phone:925-552-0128 > Chamas Enterprises Inc. http://www.chamas.com > NodeWorks Link Checking http://www.nodeworks.com > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]