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 #173531 is a reply to message #173527] Mon, 18 April 2011 09:44 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 4/18/2011 3:51 AM, "Álvaro G. Vicario" wrote:
> 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.
>
>
>

Or don't use prepared statements and escape the strings yourself.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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:12:40 GMT 2024

Total time taken to generate the page: 0.03087 seconds