----- Original Message -----
From: "Sven Bentlage" <root@stripped>
Sent: Wednesday, May 15, 2002 5:18 AM
Subject: mixed up variables
> Can anybody help me figure out how to correct that?
> Thank you for your help.
> my $sth = $dbh->prepare(
> "select *
> from memberscopy
> where name = '$f_name' and surname = '$f_surname' "
If you want variables, binding is a good idea, as it is fast over many
MySQL iterations; but why not tie multiple variables in one stroke?
$sth -> execute;
$sth -> bind_columns (undef, \$u_id, \$u_surname ... );
Or get all in one array,
my @results = $sth -> fetchrow_array;