|
|
@@ -7,12 +7,12 @@ class action {
|
|
|
|
|
|
public function getUser() {
|
|
|
$list = array();
|
|
|
- $dbAction = $this->db->prepare("SELECT * FROM clients");
|
|
|
+ $dbAction = $this->db->prepare("SELECT token, role, description FROM clients");
|
|
|
$dbAction->execute();
|
|
|
$dbAction->store_result();
|
|
|
- $dbAction->bind_result($user);
|
|
|
+ $dbAction->bind_result($token,$role,$description);
|
|
|
while($dbAction->fetch()) {
|
|
|
- array_push($list,$user);
|
|
|
+ array_push($list,[$token,$role,$description]);
|
|
|
};
|
|
|
print_r($list);
|
|
|
return $list;
|