mysqli_stmt_bind_param with lists

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux