Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^5: how to store text file information into my sql database

by Happy-the-monk (Abbot)
on Dec 26, 2015 at 12:03 UTC ( #1151189=note: print w/replies, xml ) Need Help??


in reply to Re^4: how to store text file information into my sql database
in thread how to store text file information into my sql database

DBD::mysql::st execute failed: called with 8 bind variables when 4 are needed

You are being very fortunate in getting a descriptive error, telling you what went awry:

You wrote a programme expecting 4 bind variables. Then you supplied 8 instead. You're programme wants you to help.

This does not exactly fit the description in the op where 5 of them were used. But still, you went wrong when you split on blank spaces ending up with more variables than you needed. A fix to use unpack instead of split has in the mean time been suggested by poj in Re: how to store text file information into my sql database.

Cheers, Sören

Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)

  • Comment on Re^5: how to store text file information into my sql database

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1151189]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-11-24 17:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (351 votes). Check out past polls.

    Notices?