<?php $output = ''; $sql = "SELECT * FROM modx_users"; foreach ($modx->query($sql) as $row) { $output.= "id ".$row['id'] ."/ user ".$row['username']."\n"; } return $output;
<?php $output = ''; $sql = "SELECT * FROM modx_users"; foreach ($modx->query($sql) as $row) { $output.= "id ".$row['id'] ."/ user ".$row['username']."\n"; } return $output;