
hugo simon - 2010-08-09 16:01:03
To Mr Camilo Sperberg:
With the followings changes, in line 156, and adding the function(), your class can run parametrized queries .
if (!$execute_query = @call_user_func_array(array($this->stmt,'bind_param'),makeValuesReferenced($arg_array)))
function makeValuesReferenced($arr){
$refs = array();
foreach($arr as $key => $value)
$refs[$key] = &$arr[$key];
return $refs;
}