Possible Duplicate:
Get query back from PDO prepared statement
Exists any method to show, the query executed sql query in PDO Statement object?
Ex:
$sql="SELECT * FROM table WHERE id=?";
$res=$con->prepare($sql);
$res->execute(array(1));
I like to view a query similar this: "SELECT * FROM table WHERE id=1"