Using placeholder without pass by reference in MySqli

?Could be a silly question, but i can't find a method to use placeholder
(MySqli) without passing by reference (bind_param) or receive by reference
(bind_result)? is that right? I really hate use reference becouse in large
program is common create a circular reference, even in multiple query with
same data i lost the information after first query so i need to clean an
refill at every step.

I prefer functions like MySql or DBI.

Do you think it will be implemented, function like param, param_array,
fetch_assoc, fetch_all_assoc, etc. where is the correct place to ask for
this method? here?

Thank for your advice



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
none [ Sa, 27 November 2010 01:46 ] [ ID #2050867 ]

Re: Using placeholder without pass by reference in MySqli

On 2010-11-26, at 7:46 PM, "None" <abcdefghi [at] mailinator.com> wrote:

> ?Could be a silly question, but i can't find a method to use placeholder (=
MySqli) without passing by reference (bind_param) or receive by reference (b=
ind_result)? is that right? I really hate use reference becouse in large pro=
gram is common create a circular reference, even in multiple query with same=
data i lost the information after first query so i need to clean an refill a=
t every step.
>
> I prefer functions like MySql or DBI.
>
> Do you think it will be implemented, function like param, param_array, fet=
ch_assoc, fetch_all_assoc, etc. where is the correct place to ask for this m=
ethod? here?
>
> Thank for your advice
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Look at the prepared statements section of mysqli.

Bastien Koert
Sent from my iPhone=

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Phpster [ Sa, 27 November 2010 02:29 ] [ ID #2050868 ]

Re: Using placeholder without pass by reference in MySqli

?> "Bastien" <phpster [at] gmail.com> wrote in message
news:962F0FD6-0EAA-495A-831E-DA05BC1AB371 [at] gmail.com...
>
>
> On 2010-11-26, at 7:46 PM, "None" <abcdefghi [at] mailinator.com> wrote:
>
> > ?Could be a silly question, but i can't find a method to use placeholder
> > (MySqli) without passing by reference (bind_param) or receive by
> > reference (bind_result)? is that right? I really hate use reference
> > becouse in large program is common create a circular reference, even in
> > multiple query with same data i lost the information after first query
> > so i need to clean an refill at every step.
> >
> > I prefer functions like MySql or DBI.
> >
> > Do you think it will be implemented, function like param, param_array,
> > fetch_assoc, fetch_all_assoc, etc. where is the correct place to ask for
> > this method? here?
> >
> > Thank for your advice
> >
> >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> Look at the prepared statements section of mysqli.
>
> Bastien Koert
> Sent from my iPhone=
>

I double checked the entire documentation, but it's not possible to use
prepared queries without sending or receiving data by reference it only
accept bind_result and bind_param and, in fact, this's explicitly named in
http://us.php.net/manual/en/mysqli-stmt.prepare.php

Could I be wrong? there are undocumented methods that allows this?

Thank you as always.


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
none [ Sa, 27 November 2010 15:27 ] [ ID #2050869 ]
PHP » gmane.comp.php.database » Using placeholder without pass by reference in MySqli

Vorheriges Thema: Re: Strange Query Error...
Nächstes Thema: I GOT HACKED - DO NOT CLICK ANY LINKS FROM ME