print q(connect('DBI:mysql:userxxxx', 'mysqldatabase', '********') || die "Could not connect to database: $DBI::errstr"; my $sth = $dbh->prepare('SELECT DISTINCT country FROM country ORDER BY country'); $sth->execute(); my $result; my $numero=1; print "Please select an option"; while ($result = $sth->fetchrow_array()) { print " $result"; $numero++; } my $datom = param ( 'country' ); print " $datom"; $dbh->disconnect(); print "\n\n";
Could not connect to database: $DBI::errstr
$datom