# Question about PDO::exec

- Thread: https://externals.io/message/21320
- Original archive: https://news-web.php.net/php.internals/21320
- Started by Marian Kostadinov on 2005-12-22T11:42:07+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #21320 — Marian Kostadinov — 2005-12-22T11:42:07+00:00

URL: https://externals.io/message/21320#21320

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

---

## #21322 — Wez Furlong — 2005-12-22T15:20:16+00:00

URL: https://externals.io/message/21320#21322 · In reply to: #21320

No.  Where did you read that?

--Wez.


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

---

## #21324 — Marian Kostadinov — 2005-12-22T17:19:19+00:00

URL: https://externals.io/message/21320#21324 · In reply to: #21322

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>:
>
> No.  Where did you read that?
>
> --Wez.
>
> 
> > […]

---

## #21325 — Dan Scott — 2005-12-22T17:33:19+00:00

URL: https://externals.io/message/21320#21325 · In reply to: #21324

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


> 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>:
> > […]
