Why do you use the placeholder, and then suply the value in the same statement? Granted, I didn't even know this was possible, so I appriciate haveing seen it.
But why not just do?:
my $count = $dbh->selectrow_array("select count(*) from
users where userid = $username");
In reply to Re: •Re: username and password verification from a table in Postgres
by spq
in thread username and password verification from a table in Postgres
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |