Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: dbi insert

by ralphie (Friar)
on Oct 15, 2001 at 21:51 UTC ( [id://118950]=note: print w/replies, xml ) Need Help??


in reply to dbi insert

mysql has a quirky syntax for the insert statement. while the previous posts are correct to point out that you should use placeholders, i think you'll have better luck with this syntax

$dbs=$dbh->prepare("insert into people set (fornavn=?,efernavn=?...)"); and then
execute the statement handle with the relevant scalars as merlyn suggests.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-25 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found