----- Original Message ----- From: "Sven Bentlage" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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. > > sven > code: > 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; - Mark --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php