Question about PDO::exec

php.internals

Marian Kostadinov

20 years ago
I have read somewhere something about PDO::exec that it was going to be removed from PDO. Is it true or not?

Wez Furlong

20 years ago
No. Where did you read that? --Wez. On 12/22/05, Marian Kostadinov <manchokapitancho@gmail.com> wrote:

Marian Kostadinov

20 years ago
Sorry, I don't remember:( The text was something about that when PDO went stable, exec wolud be removed. Luckily, it seems that this is not the case. I was just afraid how would I be able to find the number of affected rows. Thanks for your response:) 2005/12/22, Wez Furlong <kingwez@gmail.com>:

Dan Scott

20 years ago
http://php.net/manual/en/function.pdostatement-rowcount.php is what you want, in that case. No reason to use PDO::exec() just to get the number of affected rows. Dan On 12/22/05, Marian Kostadinov <manchokapitancho@gmail.com> wrote: