Using placeholder without pass by reference in MySqli

Using placeholder without pass by reference in MySqli

am 27.11.2010 01:46:27 von none

?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

Re: Using placeholder without pass by reference in MySqli

am 27.11.2010 02:29:18 von Phpster

On 2010-11-26, at 7:46 PM, "None" 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.
>=20
> I prefer functions like MySql or DBI.
>=20
> 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?
>=20
> Thank for your advice
>=20
>=20
>=20
> --=20
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>=20

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

Re: Using placeholder without pass by reference in MySqli

am 27.11.2010 15:27:38 von none

?> "Bastien" wrote in message
news:962F0FD6-0EAA-495A-831E-DA05BC1AB371@gmail.com...
>
>
> On 2010-11-26, at 7:46 PM, "None" 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