note 118698 added to function.db2-execute
| From: | stefanov at uk dot ibm dot com | Date: | Wed, 20 Jan 2016 19:26:34 +0000 |
| Subject: | note 118698 added to function.db2-execute | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204737@lists.php.net to get a copy of this message | ||
You CANNOT bind parameters for table and/or column names. Binding parameters only works for values:
YES: $sqlQuery = "UPDATE ".TB_NAME." SET ".CN_NAME." = ? WHERE DAY =
?";
NO: $sqlQuery = "UPDATE ? SET ? = ? WHERE DAY = ?";
Any attempt to bind column or table names will result in the following error during db2_execute():
PHP Warning: db2_bind_param(): Describe Param Failed in ...
----
Server IP: 72.52.91.14
Probable Submitter: 92.239.186.92
----
Manual Page -- http://php.net/manual/en/function.db2-execute.php
Edit -- https://master.php.net/note/edit/118698
Del: integrated -- https://master.php.net/note/delete/118698/integrated
Del: useless -- https://master.php.net/note/delete/118698/useless
Del: bad code -- https://master.php.net/note/delete/118698/bad+code
Del: spam -- https://master.php.net/note/delete/118698/spam
Del: non-english -- https://master.php.net/note/delete/118698/non-english
Del: in docs -- https://master.php.net/note/delete/118698/in+docs
Del: other reasons-- https://master.php.net/note/delete/118698
Reject -- https://master.php.net/note/reject/118698
Search -- https://master.php.net/manage/user-notes.php