Doesn't seem to work.
This is the revised code ...
$query_insert = odbc_exec($db,"INSERT INTO genres (name) VALUES ('".$_POST["name"]."')");
And this is the error:
Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query., SQL state S1000 in SQLExecDirect in ...