in reply to Inserting Select Array Material to MySql

Hi typomaniac. Your code doesn't compile, because you're just pasting chunks from your script. Eg:

my %medals=( "$med1"=>"$me1", "$med2"=>"$me2", "$med3"=>"$me3", my $table="table";
Please post actual working code, with use strict; and use warnings; enabled. Then we'll be able to help more easily! See How do I post a question effectively?

Edit:
Also, here's a couple of observations.

Hope this helps!

The way forward always starts with a minimal test.