note 70414 added to function.pdostatement-execute
| From: | russel at sunraystudios dot com | Date: | Sun, 15 Oct 2006 21:42:35 +0000 |
| Subject: | note 70414 added to function.pdostatement-execute | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-118555@lists.php.net to get a copy of this message | ||
I've used it and it returns booleans=>
$passed = $stmt->execute();
if($passed){
echo "passed";
} else {
echo "failed";
}
If the statement failed it would print failed. You would want to use errorInfo() to get more info,
but it does seem to work for me.
----
Server IP: 66.207.199.35
Probable Submitter: 24.77.186.97
----
Manual Page -- http://www.php.net/manual/en/function.pdostatement-execute.php
Edit -- https://master.php.net/note/edit/70414
Del: integrated -- https://master.php.net/note/delete/70414/integrated
Del: useless -- https://master.php.net/note/delete/70414/useless
Del: bad code -- https://master.php.net/note/delete/70414/bad+code
Del: spam -- https://master.php.net/note/delete/70414/spam
Del: non-english -- https://master.php.net/note/delete/70414/non-english
Del: in docs -- https://master.php.net/note/delete/70414/in+docs
Del: other reasons-- https://master.php.net/note/delete/70414
Reject -- https://master.php.net/note/reject/70414
Search -- https://master.php.net/manage/user-notes.php