I'm not very fluent with MySQL and I ask that you don't toss some advanced techniques my way.
I've run into a problem. I have 2 tables in my database that I need to SELECT from at the same time so I can bind_column ALL of the variables from both databases in one run.
Can someone show me how that'd be done? An example of my two databases and what I'm trying do to is below.
my $data = qq(SELECT FROM db1 name, age, email);
my $sth = $dbh->prepare($data);
$sth->execute() or die $dbh->errstr;
my $data = qq(SELECT FROM db2 height, weight, shoesize);
my $sth = $dbh->prepare($data);
$sth->execute() or die $dbh->errstr;
my ($name, $age, $email, $height, $weight, $shoesize);
$sth->bind_colums(\$name, \$age, \$email, \$height, \$weight, $shoesiz
+e);
while($sth->fetch)
{
print "$name is $age and at $email. Stands at $height, sits and $we
+ight and kicks puppies with size $shoesize shows\n";
}