note 83224 added to mysqli-stmt.prepare

From: Date: Thu, 15 May 2008 23:06:50 +0000
Subject: note 83224 added to mysqli-stmt.prepare
Groups: php.notes 
Request: Send a blank email to php-notes+get-139425@lists.php.net to get a copy of this message
A particularly helpful adaptation of this function and the call_user_func_array function: // $params is sent as array($val=>'i', $val=>'d', etc...) function db_stmt_bind_params($stmt, $params) { $funcArg[] = $stmt; foreach($params as $val=>$type) { $funcArg['type'] .= $type; $funcArg[] = $val; } return call_user_func_array('mysqli_stmt_bind_param', $funcArgs); } Thanks to 'sned' for the code. ---- Server IP: 208.69.120.35 Probable Submitter: 63.126.183.110 ---- Manual Page -- http://www.php.net/manual/en/mysqli-stmt.prepare.php Edit -- https://master.php.net/note/edit/83224 Del: integrated -- https://master.php.net/note/delete/83224/integrated Del: useless -- https://master.php.net/note/delete/83224/useless Del: bad code -- https://master.php.net/note/delete/83224/bad+code Del: spam -- https://master.php.net/note/delete/83224/spam Del: non-english -- https://master.php.net/note/delete/83224/non-english Del: in docs -- https://master.php.net/note/delete/83224/in+docs Del: other reasons-- https://master.php.net/note/delete/83224 Reject -- https://master.php.net/note/reject/83224 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#139425) next »