Advertisement
krot

mysqli real_query tpl

Jun 26th, 2017
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?
  2.  
  3. $result=$this->sqli->real_query($sql);
  4.  
  5.           do {
  6.         /* получаем первый результирующий набор */
  7.         if ($result = $this->sqli->use_result()) {
  8.            
  9.            
  10.                                 while ($row = $result->fetch_assoc()) {
  11.                                
  12.                                 }
  13.                                 $result->close();
  14.                                
  15.         }
  16.        
  17.        
  18.         unset($row);
  19.         if (!$this->sqli->more_results())break;
  20.         } while ($this->sqli->next_result());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement