note 105444 deleted from mysqli-stmt.execute by danbrown

From: Date: Thu, 18 Aug 2011 16:46:23 +0000
Subject: note 105444 deleted from mysqli-stmt.execute by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-182565@lists.php.net to get a copy of this message
Note Submitter: compton at kuxas dot com ---- Re: Note by vedran-b at email dot htnet dot hr I don't know what he managed to do, but under normal circumstances bind_param() does NOT by itself alter the value of the variables passed as arguments. They are however passed by reference, so if you change them after calling bind_param(), the changed values will be used the next time you call execute(). This is due to the original purpose of parameterised statements - it allows you to run the same query repeatedly changing only the input and receiving different output: you only need to call prepare(), bind_param() and (optionally) bind_result() once, then you loop as many times as needed calling execute() on each iteration.

« previous php.notes (#182565) next »