title: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected
body: <p>I am trying to insert data into one of the 3 tables in a database using PDOs. When I call the insert function below, and get the error: <code>SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected.</code><a href="https://i.stack.imgur.com/SgwtQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SgwtQ.png" alt="enter image description here"></a></p>