in reply to Re^2: XML::Twig to mysql totally lost
in thread XML::Twig to mysql totally lost
becomesmy $insert = ... ... sub indexfile { ... $insert->bind_param( ... ... $insert->execute();
you prepare once, you bind once, you execute many many many many times, like each time you update your bound params :)my $insert = ... $insert->bind_param( ... ... ... sub indexfile { ... $insert->execute();
|
|---|