Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: DBD::MySQL bind variable error

by UnderMine (Friar)
on May 12, 2006 at 22:04 UTC ( [id://549125]=note: print w/replies, xml ) Need Help??


in reply to Re: DBD::MySQL bind variable error
in thread DBD::MySQL bind variable error

Something like this at the start
$command='insert into mailstore.received (SenderName,SenderEmailAddres +s,SentOnBehalfOfName,ReplyRecipientNames,SenderEmailType,SentOn,Recei +vedTime,MessageClass,Size,Subj,SentTo,Unread,InternetCodepage,importa +nce,EntryID,ConversationIndex,ConversationTopic,Class,BodyFormat,Body +) values (?,?,?,?,?, ?,?,?,?,?, ?,?,?,?,?, ?,?,?,?,?)'; $sth=$dbh->prepare($command);
and in the loop
@values= map $msg->{$_}, qw{SenderName SenderEmailAddress SentOnBehalf +OfName ReplyRecipientNames SenderEmailType SentOn ReceivedTime Messag +eClass Size Subj SentTo Unread InternetCodepage importance EntryID Co +nversationIndex ConversationTopic Class BodyFormat Body} ; $rv=$sth->execute(@values);
UnderMine

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-18 00:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found