Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. $stmt = $conn->query("SELECT * FROM notifications LIMIT 0 ; SHOW META ;");
  2. $stmt->nextRowset();
  3. $result = $stmt->fetchAll(PDO::FETCH_ASSOC);
  4. print_r($result);
  5.  
  6. foreach ($result as $element => $value) {
  7.     echo "element $element, value $value \n";
  8.  
  9. //  if ($result['Variable_name'] == 'total_found') {
  10. //      $total_found = $result['Value'];
  11. //  }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement