Here it is my php code to realize insert into db:
Not sure if this is the cause of your error, but in your insert statement, CASE is a MySQL reserved word and should be escaped with backticks.
$STH = $DBH->prepare("INSERT INTO users (name,
surname,
address,
birth_place,
province,
dt,
sex,
`case`) value (:name
:surname,
:address,
:birth_place,
:province,
:dt,
:sex,
:case)");