netrosly

File HF

Jan 26th, 2017
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. //The file I make the function call from.
  2. ini_set('memory_limit', '-1');
  3. $query = "SELECT * FROM products WHERE api=1";
  4.  
  5. if ($stmt = mysqli_prepare($link, $query)) {
  6.  
  7.     $stmt->execute();
  8.    
  9.     $row = array();
  10.     stmt_bind_assoc($stmt, $row);
  11.     $i = 0;
  12.     // loop through all result rows
  13.     while ($stmt->fetch()) {
  14.           $i++;
  15.           echo("RESULTS");
  16.     }  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment