Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $params = ['result' => []];
- $i = 0;
- while($row = pg_fetch_assoc($result)){
- array_push($params['result'], $row['customer_id']);
- array_push($params['result'], $row['customer_name']);
- array_push($params['result'], $row['hostname']);
- array_push($params['result'], $row['annotation']);
- array_push($params['result'], $row['domino_scy_ou']);
- array_push($params['result'], $row['domino_hub_fullname']);
- array_push($params['result'], $row['domino_hub_hostname']);
- array_push($params['result'], $row['has_domino']);
- $i++;
- }
- echo $twig->render('template.phtml', $params);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement