in reply to MySQL: trouble inserting an array with some undefined members into a table using a set number of placeholders

The error DBD::mysql::st execute failed: called with 26 bind variables when 24 are needed looks like a good clue. Are you sure the lines you are splitting have 24 fields and not 26?

Check how many elements are in the array with print scalar @row, and, as moritz already said, use Data::Dumper to see what that array contains.

  • Comment on Re: MySQL: trouble inserting an array with some undefined members into a table using a set number of placeholders
  • Select or Download Code