Ok, I just created a prepared statement with PDO. bind the values to the parameters in the SQL that was used to create the statment. finally executed the SQL. The query didn’t work. Now I want to know the exact SQL query that was executed by the database?
Dumps the informations contained by a prepared statement directly on the output. It will provide the SQL query in use, the number of parameters used (Params), the list of parameters, with their name, type (paramtype) as an integer, their key name or position, the value, and the position in the query (if this is supported by the PDO driver, otherwise, it will be -1).