in reply to DBI bind_param problems
if($@){ print "There was a error"; } [download]
One wild guess is that '$id' has embedded newline(s) or other characters in it.