mysqli_stmt_bind_param with lists
am 13.06.2006 07:31:10 von bluejackIs 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
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php