We can prepare the method for obtaining a ready-to-use query in the PDO.
But I want to know that we can see all the queries executed on DB. For example, see below:
& lt ;? Php // Covduring DB connection is already set. Use $ 1000 named placeholder with $ db $ db-> Ready (select "from user where id =: id"); $ Db- & gt; BindParam (': id', $ id); For ($ i = 1; $ i & lt; = 5; $ i ++) {$ id = $ i; $ Db- & gt; Executed (); }? & Gt; Okay now we can see that this code will run 5 questions.
How can I get these questions executed by this execution statement?
Hope I'm clear to everyone.
Afack, as long as you do not expand the PDO class, it is unlikely that you might (Development) database can be enabled on the log. Do not use it in production.
Comments
Post a Comment