Login   Register  
PHP Classes
elePHPant
Icontem

running on windows machine:solution

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Extended MySQLi  >  All threads  >  running on windows machine:solution  >  (Un) Subscribe thread alerts  
Subject:running on windows machine:solution
Summary:correction suggested for running on windows
Messages:2
Author:hugo simon
Date:2010-08-09 16:01:03
Update:2010-08-09 16:11:12
 

  1. running on windows machine:solution   Reply   Report abuse  
Picture of hugo simon
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;

}



  2. Re: running on windows machine:solution   Reply   Report abuse  
Picture of Camilo Sperberg
Camilo Sperberg
2010-08-09 16:11:12 - In reply to message 1 from hugo simon
Wow, many thanks for this!! I will try this later and include it in the next version release (which will be sooner than version 2.2.0 xD)

I really don't have a lot of experience programming PHP in Windows, so this is really appreciated.

Greetings !