[ic] username and password in mail_receipt

Cameron interchange-users@icdevgroup.org
Sun May 4 04:05:02 2003


Hi, i'm trying to mail the client their username and password as part of
their order receipt, but i'm useless at perl. Here's what i have so far...

Username: [data session username]
Password: [perl tables="userdb"]
my $username = $Session->{values}{mv_username};
my $result = $Tag->query({sql => 'select password from userdb where
username="$username"'});

return @$result;
[/perl]

this is just returning "0"... what've i done wrong? :(