How to insert into two different table in a database using PDO with prepare statement

then you should enable PDO’s error reporting.