note 105444 added to mysqli-stmt.execute

From: Date: Thu, 18 Aug 2011 14:08:52 +0000
Subject: note 105444 added to mysqli-stmt.execute
Groups: php.notes 
Request: Send a blank email to php-notes+get-182560@lists.php.net to get a copy of this message
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 parametrised 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. ---- Server IP: 69.147.83.197 Probable Submitter: 91.229.127.73 ---- Manual Page -- http://www.php.net/manual/en/mysqli-stmt.execute.php Edit -- https://master.php.net/note/edit/105444 Del: integrated -- https://master.php.net/note/delete/105444/integrated Del: useless -- https://master.php.net/note/delete/105444/useless Del: bad code -- https://master.php.net/note/delete/105444/bad+code Del: spam -- https://master.php.net/note/delete/105444/spam Del: non-english -- https://master.php.net/note/delete/105444/non-english Del: in docs -- https://master.php.net/note/delete/105444/in+docs Del: other reasons-- https://master.php.net/note/delete/105444 Reject -- https://master.php.net/note/reject/105444 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#182560) next »