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]
