Just a few things i can mention, without actually knowing your error message (please include next time) ...
- your connect() has "um" where i would expect "dbi:mysql:SERVER", also, missing login and pass. Xomsthing line : DBI->connect("dbi:mysql:localhost",$user,$pass) || die "foo : $!\n";
- You need to quote your SQL in the prepare() statement.
- You may want to use $dbh->do() if you are doing inserts ... a bit easier to read.
- Lastly, i would suggest posting the actual problem you are having (error message, etc) so people can give more precise answers.
The requirements change because they don't know what they want, or how much they own you.