In this tutorial you will learn How to run Prepared SQL statements using PDO. Before starting you must create a…