Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Wrong SQL Syntax?

by McDarren (Abbot)
on Dec 03, 2010 at 12:48 UTC ( #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


Comment on Re: Wrong SQL Syntax?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://875170]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-07-02 04:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (27 votes), past polls