- 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.
>
>
Hi,
A better solution would be to simply use the fetchrow_hashref() method.
i.e.:
while(my $ref = $sth->fetchrow_hashref()){
print "$ref->{my_column}\n";
}
Much cleaner and easier to manage.
etc.
I've found this way much easier to manage than a huge list of variables.
Sven Bentl
Hi guys,
just found a way that works, though it's not very elegant. (see below)
and I do not know why it didn't work...
Although it's working now, I'd still appreciate your comments.
Regards,
Sven
code:
while ( my (
$u_id, $u_surname, $u_name, $u_rank, $u_cname, $u_caddress, $u
Hi!
I'm using the code below to fetch data from mysql, but when I print iit
out, several variables are always mixed up.
For example $u_course has the value of membership_paid, membership has
the values of pcont.
Can anybody help me figure out how to correct that?
Thank you for your help.
sve