What PDO::exec really does return?
from mainpage:PDO::exec — Execute an SQL statement and return the number of affected rows
my INSERT statement works fine. When I try:
echo 'affected rows: ', $db->exec(); - it returns '0', though 551 record was inserted really;
otherwise, when no record was inserted really it returns '1'
Subject
Written By
Posted
What PDO::exec really does return?
February 05, 2016 06:10AM
February 05, 2016 06:29AM
February 06, 2016 11:49PM
February 08, 2016 12:37AM
February 08, 2016 11:16AM
February 08, 2016 11:16PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.