×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: userc865b
Added: May 12, 2017 1:19 PM
Modified: Sep 5, 2018 12:50 PM
Views: 2457
Tags: mysqli
  1.   $params =  [$parms] ; // parameter als String--> ssssiii
  2.   $params= array_merge($params,$valuesArray);// $valuesArray --> [10,'Hallo ]
  3.   //now we need to add references wenn ich $tmp ändere ändert sich auch $params!
  4.   $tmp=array();
  5.   foreach($params as $key => $value) $tmp[$key] = &$params[$key];            
  6.   call_user_func_array(array($stmt, 'bind_param'), $tmp);