Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Wrong SQL Syntax?

by McDarren (Abbot)
on Dec 03, 2010 at 12:48 UTC ( [id://875170] : note . print w/replies, xml ) Need Help??


in reply to Wrong SQL Syntax?

Use Placeholders
my $sth = $dbh->prepare("SELECT userid, login_name, realname FROM prof +iles WHERE login_name = ?"); # and then $sth->execute($user_login_name);
Cheers,
Darren