Advertisement
Goddino

postgres + twig

Mar 9th, 2020
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.59 KB | None | 0 0
  1. $params = ['result' => []];
  2. $i = 0;
  3. while($row = pg_fetch_assoc($result)){
  4.     array_push($params['result'], $row['customer_id']);
  5.     array_push($params['result'], $row['customer_name']);
  6.     array_push($params['result'], $row['hostname']);
  7.     array_push($params['result'], $row['annotation']);
  8.     array_push($params['result'], $row['domino_scy_ou']);
  9.     array_push($params['result'], $row['domino_hub_fullname']);
  10.     array_push($params['result'], $row['domino_hub_hostname']);
  11.     array_push($params['result'], $row['has_domino']);
  12.     $i++;
  13. }
  14. echo $twig->render('template.phtml', $params);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement