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
Re: mysqli - can I bind wildcard params, and just get a result back to make a hash? [message #173527 is a reply to message #173483] Mon, 18 April 2011 07:51 Go to previous messageGo to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 15/04/2011 19:42, Tobiah escribió/wrote:
> My version of php does not have the mysterious $stmt->get_result()
> method.

http://es2.php.net/manual/en/mysqli-stmt.get-result.php

«(No version information available, might only be in SVN)»

It looks that no version of PHP has that feature yet.

> Without that, I can't see my path to getting an assoc array
> back from a fetch after doing '?' wildcard parameter binding.

That's one of the reasons why many of use hate the mysqli extension: it
only supports associative arrays in result sets when you *don't* use
prepared statements. Your only options are:

1. Stick to mysqli and use numeric arrays.
2. Switch to another extension like PDO.



--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[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 23:23:34 GMT 2024

Total time taken to generate the page: 0.04360 seconds