note 104959 added to mysqli-stmt.bind-param

From: Date: Tue, 19 Jul 2011 03:20:37 +0000
Subject: note 104959 added to mysqli-stmt.bind-param
Groups: php.notes 
Request: Send a blank email to php-notes+get-181680@lists.php.net to get a copy of this message
Correction from an example submitted below: <?php $db = new mysqli("localhost","root","","tests"); $res = $db->prepare("INSERT INTO test SET foo=?,bar=?"); $refArr = array("si","hello",42); $ref = new ReflectionClass('mysqli_stmt'); $method = $ref->getMethod("bind_param"); $refArr = array_unshift($refArr, $res); $method->invokeArgs($refArr); // This method does not take 2 arguments $res->execute(); ?> ---- Server IP: 216.235.13.26 Probable Submitter: 184.162.87.156 ---- Manual Page -- http://www.php.net/manual/en/mysqli-stmt.bind-param.php Edit -- https://master.php.net/note/edit/104959 Del: integrated -- https://master.php.net/note/delete/104959/integrated Del: useless -- https://master.php.net/note/delete/104959/useless Del: bad code -- https://master.php.net/note/delete/104959/bad+code Del: spam -- https://master.php.net/note/delete/104959/spam Del: non-english -- https://master.php.net/note/delete/104959/non-english Del: in docs -- https://master.php.net/note/delete/104959/in+docs Del: other reasons-- https://master.php.net/note/delete/104959 Reject -- https://master.php.net/note/reject/104959 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#181680) next »