On Mon, Sep 13, 2004 at 06:22:13PM +0100, Martin Moss wrote:
> All,
> 
> Can I do this?
> 
> $sth->bind_param_inout($#execute_args+1,\$new_id,38);
> $sth->execute(@execute_args);
> 
> When I try I get the following error
> Can't rebind or change param :p6 in/out mode after
> first bind (1 => 0) at ...........
> 
> I wish to pass several arguments, into the sth, I wish
> to use placeholders so I can cache this $sth, 

Use bind_param() or bind_param_inout() for all the params
and then call execute() with no arguments.

Tim.

Reply via email to