Question between PDO() and PDOStatement() classes
Posted: Sat Nov 29, 2014 1:32 pm
When you connect to the database or the db server, do you create an instance of both classes the PDO() and the PDOStatement()?
If not, how do you perform a query with PDO() and then fetch the information with PDOStatement()?
How do you make the connection that the two instance relate to each other?
If not, how do you perform a query with PDO() and then fetch the information with PDOStatement()?
How do you make the connection that the two instance relate to each other?