Re: [PHP-DB] Using placeholder without pass by reference in MySqli

2010-11-27 Thread None
?> "Bastien"  wrote in message 
news:962f0fd6-0eaa-495a-831e-da05bc1ab...@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



Re: [PHP-DB] Using placeholder without pass by reference in MySqli

2010-11-26 Thread Bastien


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
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Using placeholder without pass by reference in MySqli

2010-11-26 Thread 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