FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » mysqli - can I bind wildcard params, and just get a result back to make a hash?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
mysqli - can I bind wildcard params, and just get a result back to make a hash? [message #173483] Fri, 15 April 2011 17:42 Go to previous message
Tobiah is currently offline  Tobiah
Messages: 30
Registered: April 2011
Karma:
Member
My version of php does not have the mysterious $stmt->get_result()
method. Without that, I can't see my path to getting an assoc array
back from a fetch after doing '?' wildcard parameter binding.

The bind_result() method is too tedious to maintain when a table
with a large number of fields is queried and the structure of the
table is under development.

Now, I'm kludging this together using call_user_func_array() and
stuffing variable references into the argument array, but it's
pretty awkward. Maybe this is why get_result() was invented,
although the docs say that it may only be in SVN, and my php
does not have it.


Thanks!

Tobiah
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: & - form and session problem!
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 17:49:56 GMT 2024

Total time taken to generate the page: 0.04423 seconds