mysqli_stmt_bind_param with lists
| From: | Bluejack | Date: | Tue, 13 Jun 2006 05:31:10 +0000 |
| Subject: | mysqli_stmt_bind_param with lists | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-42045@lists.php.net to get a copy of this message | ||
Is there any way to get mysqli_stmt_bind_param to take the bind
parameters as an array? It seems to see an array as a single item,
rather than detecting an array and expanding the elements.
I have tried any number of tricks to split an array into an anonymous
list of variables within the function call to mysqli_stmt_bind but to
no avail. Any ideas? This is going to be extremely annoying, to the
point of useless, otherwise.
-Bluejack
PS: the only thing i can think of so far is to use extract on the
array, and then switching on the number of elements in the array to a
sequence of bind_params calls, each of which taking the right params
that have been extracted to the symbol table. Ridiculous!!!
--
---------------------------------------------------------------
Work as though you live in the younger days of a better nation!
---------------------------------------------- -- Alasdair Gray