note 125040 added to pdostatement.execute
| From: | valterekholmathotmail.com@php.net | Date: | Sat, 23 May 2020 11:25:29 +0000 |
| Subject: | note 125040 added to pdostatement.execute | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-214667@lists.php.net to get a copy of this message | ||
I'm using the question-mark way when binding. I tried to use an an associative array when doing
$stmt->execute($values);
having column-names as keys. I thought this would make it easier when rendering the query (as I had
variable amounts of parameters).
I found that the execute then could not work with associative array, only with numeric array (with
numeric indexes).
----
Server IP: 45.112.84.4
Probable Submitter: 103.51.166.36 (proxied: 83.241.147.98)
----
Manual Page -- http://php.net/manual/en/pdostatement.execute.php
Edit -- https://master.php.net/note/edit/125040
Del: integrated -- https://master.php.net/note/delete/125040/integrated
Del: useless -- https://master.php.net/note/delete/125040/useless
Del: bad code -- https://master.php.net/note/delete/125040/bad+code
Del: spam -- https://master.php.net/note/delete/125040/spam
Del: non-english -- https://master.php.net/note/delete/125040/non-english
Del: in docs -- https://master.php.net/note/delete/125040/in+docs
Del: other reasons-- https://master.php.net/note/delete/125040
Reject -- https://master.php.net/note/reject/125040
Search -- https://master.php.net/manage/user-notes.php